Advertisement:

Author Topic: SA Facebook Integration  (Read 1038547 times)

Offline Zuća

  • Full Member
  • ***
  • Posts: 555
  • Gender: Male
Re: SA Facebook Integration
« Reply #2400 on: March 12, 2012, 06:54:42 AM »
what is new after update ?


Offline trekkie2444

  • Full Member
  • ***
  • Posts: 602
Re: SA Facebook Integration
« Reply #2402 on: March 12, 2012, 12:47:16 PM »
Ah, I see that's the same issue you had, but mine is with login, not publish...

So it's pretty URLs that is causing this? Does the new version fix this?

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2403 on: March 12, 2012, 04:35:36 PM »
Ah, I see that's the same issue you had, but mine is with login, not publish...

So it's pretty URLs that is causing this? Does the new version fix this?

witch problem exactly?

Offline trekkie2444

  • Full Member
  • ***
  • Posts: 602
Re: SA Facebook Integration
« Reply #2404 on: March 12, 2012, 11:45:05 PM »
The mem error.

Offline joelstoner

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Integration
« Reply #2405 on: March 13, 2012, 01:53:45 AM »
Installed mod, got an error in two files, had to remove mod to get forum to work again. Is there a more detailed install instructions? This mod is the whole reason i spent 3 hours uploading SMF forum to replace phpBB, as there is no currently supported facebook mod for phpBB. If i can not get this mod to work there is no point in keeping SMF. Has someone successfully installed this mod on SMF 2.0.2?

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,746
  • Gender: Male
    • Kindred-999 on GitHub
Re: SA Facebook Integration
« Reply #2406 on: March 13, 2012, 07:58:48 AM »
it installs fine into 2.0.2.

If you had file errors during the installation, that pretty much explains your problem.... those errors mean than the package manager could not automatically update those files.

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Rowdy

  • Jr. Member
  • **
  • Posts: 164
Re: SA Facebook Integration
« Reply #2407 on: March 13, 2012, 09:25:57 AM »
When I try to grant the permissions to the publisher, I get the following error. When I go back to the page, one of the three access tokens is there but not the other two. I'm using latest smf- 2.02. Any help, please?:

Fatal error: Uncaught OAuthException: (#100) Unknown fields: access_token thrown in /home/xxxxxx/public_html/smf/facebookauth/base_facebook.php on line 1039


Problem solved by using just the FB page title instead of the page url in the publisher settings. Thanks!
« Last Edit: March 13, 2012, 12:40:44 PM by Rowdy »

Offline joelstoner

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Integration
« Reply #2408 on: March 13, 2012, 10:54:09 AM »
Ok i looked at that site, and have a better idea of how to install mods manually. But i have an issue, the parse instructions option from the website, it says to add the code before the text to find. I found the text, but after looking at the install.xml file the install file says to add the code after the text to find. Which is right?

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,746
  • Gender: Male
    • Kindred-999 on GitHub
Re: SA Facebook Integration
« Reply #2409 on: March 13, 2012, 11:00:41 AM »
the XML is "reversed" form what you think it says - the parsed mod explains it correctly.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline nfh

  • Semi-Newbie
  • *
  • Posts: 18
Re: SA Facebook Integration
« Reply #2410 on: March 13, 2012, 03:41:34 PM »
I installed this new update but it seems that both 'subject' and 'body' indexes of the $cleaned array (on function facebook_showPub, FacebookHooks.php file) aren't getting any string whatsoever, which leads to an facebook error when someone tries to use the Publish button.

By the way, by checking the "Publish" checkbox on the Boards configuration page (under Facebook Integration settings), posts on checked boards are automatically published to Facebook, right? And the "publish" link is activated for each message, am I right? Is it possible to make these two features independent? I mean, I would like to have the "Publish" link available in nearly every board, but just a few boards with automatic publishing.

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2411 on: March 13, 2012, 03:49:51 PM »
I installed this new update but it seems that both 'subject' and 'body' indexes of the $cleaned array (on function facebook_showPub, FacebookHooks.php file) aren't getting any string whatsoever, which leads to an facebook error when someone tries to use the Publish button.

Witch language are you using? It's working just fine in my spanish-utf based forum
Code: [Select]
http://www.desadaptados.net/chicas-hot/nueva-miss-reef-peru-2011/

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2412 on: March 13, 2012, 04:39:42 PM »
@SA
When a person creates a topic, in the facebook fan page says "XXXX created the topic YYYY", but the responses don't say "ZZZZ response: bla bla bla"

where can I add this?

Offline nfh

  • Semi-Newbie
  • *
  • Posts: 18
Re: SA Facebook Integration
« Reply #2413 on: March 13, 2012, 05:07:38 PM »
I installed this new update but it seems that both 'subject' and 'body' indexes of the $cleaned array (on function facebook_showPub, FacebookHooks.php file) aren't getting any string whatsoever, which leads to an facebook error when someone tries to use the Publish button.

Witch language are you using? It's working just fine in my spanish-utf based forum
Code: [Select]
http://www.desadaptados.net/chicas-hot/nueva-miss-reef-peru-2011/

I'm using Portuguese, with ISO-8859-1 encoding.

It seems that the facebook_htmlspecialchars is causing this. By commenting the line that encodes the string with UTF-8 encoding the problem seems to be solved, although portuguese characters from posts aren't showing up properly on the facebook popup (even by replacing UTF-8 by ISO-8859-1 on those PHP function parameters).

Code: [Select]
static function facebook_htmlspecialchars($data){
   
$data = strip_tags($data);
//$data = htmlspecialchars(htmlentities($data, ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8");
return $data;
}
« Last Edit: March 13, 2012, 05:13:45 PM by nfh »

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2414 on: March 13, 2012, 05:59:01 PM »
@SA
When a person creates a topic, in the facebook fan page says "XXXX created the topic YYYY", but the responses don't say "ZZZZ response: bla bla bla"

where can I add this?
Also, When some comment is made in the comments box (in the bottom of the forum, this isn't publish into their wall.  or nowhere), even when the "publish in facebook" box is ticked

And I was having some messages saying that "the page *topic* can't be found", So I edit in the FacebookHook.php file this:

Code: [Select]
echo'<fb:comments href="'.$context['current_topic'].'" num_posts="'.$numpost.'" width="'.$width.'" colorscheme="'.$colour.'"></fb:comments>';And replaced with this:
Code: [Select]
echo'<fb:comments href="'.$scripturl .'?topic='.$context['current_topic'].'.0" num_posts="'.$numpost.'" width="'.$width.'" colorscheme="'.$colour.'"></fb:comments>';
also added in the globals in that function $context, and $scripturl.
« Last Edit: March 13, 2012, 06:03:38 PM by distante »

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2415 on: March 13, 2012, 06:18:02 PM »
* distante doing their multiple personality thing
@SA
When a person creates a topic, in the facebook fan page says "XXXX created the topic YYYY", but the responses don't say "ZZZZ response: bla bla bla"

where can I add this?

Search in FacebookHooks.php
Code: [Select]
$attachment['message'] = $nobbc_body;replace with
Code: [Select]
$attachment['message'] = $user_info['name'].': '.$nobbc_body;
and Add $userinfo in the globals of that function.

The result will be something like

Quote
distante: this is a reply of a topic

Offline joelstoner

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Integration
« Reply #2416 on: March 13, 2012, 10:22:06 PM »
Ok i have it installed again, but i see no difference on the forum, even after clearing the cache. Do i have to run install.php? If so where should it be during the install, packages, or root?

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2417 on: March 13, 2012, 10:56:33 PM »
Ok i have it installed again, but i see no difference on the forum, even after clearing the cache. Do i have to run install.php? If so where should it be during the install, packages, or root?

Exactly what problem do you have with the mod?

Offline joelstoner

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Integration
« Reply #2418 on: March 13, 2012, 11:58:48 PM »
I can not install it with the package manager, i'm trying to manually install it. I've uploaded and moved the files to their respective spots. I've altered the correct code in the display.template.php file. But i can not find the settings to add the app ID from facebook, or see anything related to facebook on the forum.

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: SA Facebook Integration
« Reply #2419 on: March 14, 2012, 01:31:16 AM »
Version of smf?

did you tried to emulate the version of your forum?