Customizing SMF > Modifications and Packages

SA Facebook Integration

<< < (515/678) > >>

billis_2:

--- Quote from: Dott.New on April 22, 2012, 06:00:19 AM ---
--- Quote from: billis_2 on April 21, 2012, 03:43:42 PM ---I have install SA Facebook Integration 2.0 RC4 REV58
and i have w3 Validation Output: 7 Errors, 9 warning(s)

--- End quote ---

in base_facebook.php riga 958
search:

--- Code: ---
$url .= '?' . http_build_query($params, null, '&');

--- End code ---

replace

--- Code: ---$url .= '?' . http_build_query($params, null, '&amp;');

--- End code ---


in FacebookHooks.php riga 425
search:

--- Code: ---$open_graph = '
<meta property="fb:app_id" content="'.$modSettings['fb_app_id'].'" />
<meta property="og:type" content="article" />
<meta property="og:locale" content="'.(empty($modSettings['fb_admin_intern1']) ? $modSettings['fb_admin_intern1'] : 'en_US').'" />
<meta property="og:title" content="'.$context['page_title_html_safe']. '" />
<meta property="og:image" content="'.(!empty($modSettings['fb_app_image']) ? $modSettings['fb_app_image'] : $settings['default_theme_url'].'/images/topic/veryhot_post.gif').'" />
<meta property="og:description" content="'.$context['page_title_html_safe'].'" />
<meta property="og:url" content="'.(empty($context['current_topic']) ? $scripturl : $scripturl .'?topic='.$context['current_topic'].'.0').'" />';

--- End code ---

replace

--- Code: ---$open_graph = '<script type="text/javascript">
<![CDATA[<meta property="fb:app_id" content="'.$modSettings['fb_app_id'].'" />
<meta property="og:type" content="article" />
<meta property="og:locale" content="'.(empty($modSettings['fb_admin_intern1']) ? $modSettings['fb_admin_intern1'] : 'en_US').'" />
<meta property="og:title" content="'.$context['page_title_html_safe']. '" />
<meta property="og:image" content="'.(!empty($modSettings['fb_app_image']) ? $modSettings['fb_app_image'] : $settings['default_theme_url'].'/images/topic/veryhot_post.gif').'" />
<meta property="og:description" content="'.$context['page_title_html_safe'].'" />
<meta property="og:url" content="'.(empty($context['current_topic']) ? $scripturl : $scripturl .'?topic='.$context['current_topic'].'.0').'" />//]]></script>';

--- End code ---


bye.

--- End quote ---

Thank you :)

than:
Hi,

Great Mod, I only have one problem. When I publish a message with attachment, this don´t appears in Facebook page message, only the message icon.

¿How can I include the image located in attachment in the Facebook page message?

Thanks in advance.
Than.

templaries:
Hi

Please, this mod doesnt work for me.

I have installed smf 2.0.2 version and SA facebook RC4 REV58.

I have configured well (i think) the properties, also, the Facebook App fields (ID and Secret).

After, when I try to test the mod in main page of forum clicking "Connect with Facebook", the mod sends me to this facebook page:

www_facebook_com/dialog/oauth?client_id=326404520747526&redirect_uri=http%3A%2F%2F[MY_FORUM_URL]%2Findex.php%3Faction%3Dfacebookintegrate&state=75acbfeff7e9f1460fffbac06f5c6a17&scope=offline_access%2Cemail%2Cstatus_update%2Cpublish_stream

And in, i obtained an error message, it is like this:

"Ha ocurrido un error con [name_of_my_fb_app]. Por favor, inténtalo de nuevo más tarde."

In English: " An error ocurred with [name_of_my_fb_app]. Please try again .

templaries:
OK. I inform that the error was a incorrect filled of field webpage in facebook app.

The webpage must be the forum url.

!RFAN:
I want to change position of Facebook Comments in posts.. i want to place it above post... please guide me..

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version