News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SA Facebook Integration

Started by SMFHacks.com Team, February 12, 2010, 01:36:11 PM

Previous topic - Next topic

SA™

Change Log:





21 Nov, 2011 [2.0 Fixes several bugs]

  • fixed database value you're trying to insert does not exist: current_board error
  • begining adding supprt for auto reauth
  • added supprt for open graph for likes and shares
  • fixed issue unable to redeclare class facebook
  • social hook now use classes [your need to update your codes if you use the social hooks]
  • added option to disable invite friends
  • added option to disable your friends page
  • moved around admin settings
  • fixed issue hook functions not declared public static
  • fixed issue with post to wall promt when loggin in
  • fixed isue importing friends resulting in blank page
  • fixed issue pwp showing intermiterly

             
Left blank intentionally:

  • minor code refactor to use oop
  • used proper constructer methods to create objects
  • chnaged $facebook = $facebook = new to $facebook = new many places
  • optimised face_init function to only ping fb if needed instead of each page load
  • updated js sdk
  • added option to disable whats on your mind
  • added option to disable facebook page
  • fixed issue with open graph breaking profile with dogy chars
  • some new settings where back to front
  • fixed undefined errors
  • public staic was defined twice on faceload function
  • fixed issue with portal installed

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

trekkie2444

So it looks like I'm still having the issue with it installing as the Apache user and not the root, but when I delete the /facebookauth folder, I still get the white page, it's only when I delete the /Sources/Facebook folder that I can use my forum again.

Ascot

I wonder how can i turn my "Connect with Facebook" hook button into spanish?
My language is set to spanish and works ok with other buttons and boxes by default.

SA™

@trekkie2444
im a little confused here why woudl you want to remove the facebookauth folder anyway it there for a reason you know?

@Ascot
you can change the connect with facebook button in fb admin
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

trekkie2444

Quote from: SA™ on November 21, 2011, 01:41:32 PM
@trekkie2444
im a little confused here why woudl you want to remove the facebookauth folder anyway it there for a reason you know?

@Ascot
you can change the connect with facebook button in fb admin

I removed everything that the mod installed because of the white page problem on all pages after installing it. I apparently don't need to delete that folder, as the issue is in the /Sources/Facebook folder.

SA™

check you server error logs there should be a clue in there about it
not the forum error logs
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


Qzi

#2028
Hi, I have BIG problem.
After installing the modified facebook page gives me the message:
Fatal error: Cannot redeclare facebook_array_insert() in /home/kobi123d/domains/sekrety-kobiety.pl/public_html/Sources/Facebook/FacebookHooks.php on line 28

I checked the file and unfortunately I do not know what could be wrong :(

line: 25-51
if (!defined('SMF'))
die('Hacking attempt...');

function facebook_array_insert(&$input, $key, $insert, $where = 'before', $strict = false)
{
$position = array_search($key, array_keys($input), $strict);

// Key not found -> insert as last
if ($position === false)
{
$input = array_merge($input, $insert);
return;
}

if ($where === 'after')
$position += 1;

// Insert as first
if ($position === 0)
$input = array_merge($insert, $input);
else
$input = array_merge(
array_slice($input, 0, $position),
$insert,
array_slice($input, $position)
);
}


edit
-------------------------------------

after update rev46 - another problem:
Fatal error: Cannot redeclare template_facebook_above() in /home/kobi123d/domains/sekrety-kobiety.pl/public_html/Sources/Facebook/FacebookHooks.php on line 870


Please help

Adrek

After update from rev36 I'm getting this errors in my log:

index.php?action=facebookintegrate;area=logsync
8: Array to string conversion
File: /public_html/Sources/Subs-Shoutbox.php
Line: 28


And 28 line is:
if (!in_array(strtolower($action), explode(',', $show)))

But honestly... I didn't know where to post this message, but all this started after update SA Facebook from rev36 to rev46 so I think that this is appropriate topic.

I'm using SMF Packs Shoutbox.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

SA™

@phantomm

ill have to install that to see whats going on wich i will do later

@Qzi
sound like it hasnt uninstaledl properly
grab the remove_hooks.php file from rev36 and upload it to your server the same place as your SSI.php is and run it in your brouser
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

David111567

I'm still trying to figure out how to solve the Ajax Chat errors that I get when I install this mod.  I love the mod and it works in every other way with no issues.  But I need my chat rooms and my members are screaming about the errors when I install the facebook mod. It renders the Ajax Chat useless.

I've tried the suggested fixes but with no luck.

Wonderful mod, by the way.  Wish I could use it on my forums.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

#2033
Quote from: phantomm on November 22, 2011, 01:26:49 PM
After update from rev36 I'm getting this errors in my log:

index.php?action=facebookintegrate;area=logsync
8: Array to string conversion
File: /public_html/Sources/Subs-Shoutbox.php
Line: 28


And 28 line is:
if (!in_array(strtolower($action), explode(',', $show)))

But honestly... I didn't know where to post this message, but all this started after update SA Facebook from rev36 to rev46 so I think that this is appropriate topic.

I'm using SMF Packs Shoutbox.

im not realy sure if it is a issue with this mod or the shoutbox but you can disable to the shout box for the facebook mod

Subs-Shoutbox.php find

if (Shoutbox_Settings('disable') != '')
    return $action;

add after
if($context['current_action'] == 'facebook')
    return $action;
if($context['current_action'] == 'facebookintegrate')
    return $action;


http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

@David111567
Quoteenders the Ajax Chat useless.

can you tell me what happens cos that doesnt realy help  i just install ajax chat mod and didnt find any issues with this?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Adrek

@SA, yes, this works, but then I get Undefined index: current_action... I think that I have to change shoutbox...
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

trekkie2444

I don't see anything in my server's error log about the Facebook integration, I'm not sure where to go from there.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

mdj

Hi-I just uploaded the latest mod version, and I am on 2.0.1, basically the program loaded fine, but I cannot gain access now to my admin panel, it keeps saying session timed out, I cannot admin my site from the panel, I will have to go into my cpanel and deal with this, any Ideas why this happened?

thank you.

Mike
SMF Version: 2.0.1

David111567

Quote from: SA™ on November 22, 2011, 10:46:00 PM
@David111567
Quoteenders the Ajax Chat useless.

can you tell me what happens cos that doesnt realy help  i just install ajax chat mod and didnt find any issues with this?


Sorry it took so long to reply.

These are the errors I get in Ajax Chat when I install ANY version of the Facebook mod:




207

Warning: Invalid argument supplied for foreach() in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 207

Notice: Undefined index: profile in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 212

Warning: array_slice() [function.array-slice]: The first argument should be an array in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 212

Notice: Undefined index: profile in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 222

Warning: array_slice() [function.array-slice]: The first argument should be an array in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 222

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 224

Warning: array_merge() [function.array-merge]: Argument #3 is not an array in G:\Abyss Web Server\htdocs\hogwarts\Sources\Facebook\FacebookHooks.php on line 224




I would LOVE to use this mod. It works WONDERFULLY in all other areas. My members love it. But we need the chat rooms more than the mod.

Can you help me make this work?

Thanks!

David

Advertisement: