Advertisement:

Author Topic: SA Facebook Integration  (Read 1033995 times)

Offline ProtoGT

  • Semi-Newbie
  • *
  • Posts: 54
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #980 on: November 03, 2010, 05:25:38 PM »
SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip is what I installed.

Offline Spoogs

  • SMF Hero
  • ******
  • Posts: 1,676
  • Gender: Male
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #981 on: November 03, 2010, 06:49:33 PM »
SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip is what I installed.
Did you select which boards are like boards in the ACP

Offline ProtoGT

  • Semi-Newbie
  • *
  • Posts: 54
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #982 on: November 03, 2010, 08:08:52 PM »
SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip is what I installed.
Did you select which boards are like boards in the ACP

yes

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #983 on: November 03, 2010, 09:21:38 PM »
I have translated to French the user-side english sentences in the install.xml file.
now when I try to upload this file, I have an error message telling me the file is corrupt.

The package you tried to upload either is not a valid package or has become corrupted.

Why is that ? am attaching the "french_included" version I made as my little contribution to this mod.

Do you need a special mod for your smf forums? contact me for a quote.

Offline maihannijat

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • Afghanistan Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #984 on: November 04, 2010, 02:55:32 AM »
Now I am able to to connect with Facebook button I have redirect all Facebook http to https:// .

Question: Why I was not able to connect from my Forum and at same time I was able to connect from other Forum?

Same PC same browser and Same secure connection, with other Forums no problem but I had only with mine.

Offline parvaz

  • Semi-Newbie
  • *
  • Posts: 35
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #985 on: November 05, 2010, 06:45:47 AM »
Hi,
there are 4 versions on the mod site.
which version would be the right one for me?
I use smf 2.0 RC3 with simple portal, ultimate profile & couple of other mods. Any known conflicts with other mods?

I appreciate any help.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
http://samods.github.io/SAChatBar/

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

Offline FireDart

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #987 on: November 07, 2010, 10:58:35 AM »
SA™
1) Thanks for creating the mod!
2) I am having the same problem as maihannijat, am using a custom template, no mods, and I have gone in manually and found what makes the FBC work and put it in my custom template.

When I click on the "Facebook Connect" link it just puts "#" at the end. So I think I missed some JS somewhere.

Also I found that am getting "Invalid Application ID" from a page called:
facebook.com/external/login_status.php etc.....

I know I have the right App. ID so that part am baffled.

Maybe I missed something, I don't know but could you either post what make FBC work or check my file?

Thanks,
-FD

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #988 on: November 07, 2010, 12:06:55 PM »
find in that file

echo $context['html_headers'], '

after add

Code: [Select]
global $boardurl, $modSettings;
echo'<script src="'.$boardurl.'/fbc/fbconnect.js" type="text/javascript"></script>
<script type="text/javascript">
var mod_settings_fb_app_pageid = "',$modSettings['fb_app_pageid'],'";
var mod_settings_fb_app_stream = "',$modSettings['fb_app_stream'],'";
var mod_settings_fb_app_connection = "',$modSettings['fb_app_connection'],'";
var mod_settings_fb_app_width = "',$modSettings['fb_app_width'],'";
var mod_settings_fb_com_xid = "',$modSettings['fb_app_comments_boxid'],'";
var mod_settings_fb_com_show = "',$modSettings['fb_admin_commets_post'],'";
</script>';
http://samods.github.io/SAChatBar/

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

Offline FireDart

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #989 on: November 07, 2010, 05:21:16 PM »
SA™ thanks but am stilling having some issues. It does load the javascript and creates the pop-up but...
I get this error:
Quote
Invalid API key specified


The application you are trying to access does not exist or has been disabled.

Simple right? I checked the API key and it matches, what is weird thought is that it works with the core theme but not the custom them.

I attached the new index.template.php file.

Thanks for your quick response, much appreciated.

Offline maihannijat

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • Afghanistan Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #990 on: November 08, 2010, 01:59:45 AM »
From where I can find my Comment Box ID?

Offline Mihac™

  • Jr. Member
  • **
  • Posts: 227
  • Gender: Male
    • Zagreb-Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #991 on: November 08, 2010, 03:56:01 AM »
The modification is very good.
Is there any possibility that the comments from the first page moved under each theme, and "Comments Box XID" an automatic topic title?
Example:

"kad budala postavi neko glupo pitanje ni deset mudraca ne može na njega odgovoriti "

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #992 on: November 09, 2010, 10:15:43 AM »
From where I can find my Comment Box ID?

ther eis no comments box id you meant xid? right

that is a unique identifier for the comments box in other words it can be anything you wanted eg your user name maybe it has to be unique for each site othwer wise the comment will fail to load
The modification is very good.
Is there any possibility that the comments from the first page moved under each theme, and "Comments Box XID" an automatic topic title?
Example:

yes it is doable only problem is that i diont have time to do it right now
http://samods.github.io/SAChatBar/

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

Offline maihannijat

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • Afghanistan Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #993 on: November 10, 2010, 05:50:57 AM »
I have tried to add SA code for my custom theme. but no success

I am using Orange-lt theme. I attached my index.template.php file.

I will appreciate anyone help me with it.

Thanks



Any update on this? My 2 forums are base on this template.
« Last Edit: November 14, 2010, 10:54:45 AM by maihannijat »

Offline qubbah

  • Full Member
  • ***
  • Posts: 556
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #994 on: November 10, 2010, 01:49:44 PM »
Tired to change it.. because im not using default theme.
For several timessss..  so tired
 O:)
hope somebody can help me..


Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #995 on: November 18, 2010, 01:29:52 AM »
SA_FBConnect 1.0 RC2-3 rev280

small update that fixes profile badges show for the wrong people issue

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

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

Offline FireDart

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #996 on: November 20, 2010, 12:48:05 PM »
SA™ can you tell me where you are pulling $modSettings['fb_app_key'], $modSettings['fb_app_secret'], and any other $modSettings?

When I do:
Code: [Select]
echo "KEY:" . $modSettings['fb_app_key'];
echo "<br />KEY:" . $modSettings['fb_app_secret'];

It echos only:
KEY:
KEY:

Did something get skipped in the install process? It still works great on the core template but on a custom template I still can't get the api to work.

BTW this is what is around it, and it should work since it's calling a global before the echo, so it should already have the api info right?
Code: [Select]
function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;
echo "KEY:" . $modSettings['fb_app_key'];
echo "<br />KEY:" . $modSettings['fb_app_secret'];
echo'
   <script type="text/javascript">
   FB.init("'.$modSettings['fb_app_key'].'",
   "'.$boardurl.'/fbc/xd_receiver.htm",
   {"doNotUseCachedConnectState":true });
   function doLoggedOutFacebookUser(){
   FB.Connect.logout(function(){location.href = "'.$scripturl.'?action=logout;sesc='.$context['session_id'].'";});
   }
</script>';

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #997 on: November 20, 2010, 01:16:57 PM »
replace

global $context, $settings, $options, $scripturl, $txt;

with

global $context, $settings, $options, $scripturl, $txt, $modSettings;
http://samods.github.io/SAChatBar/

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

Offline FireDart

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #998 on: November 20, 2010, 01:41:14 PM »
Thank you so much, I can't believe I over looked that. I assumed it was there!

Also it should be:
Code: [Select]
global $context, $settings, $options, $scripturl, $boardurl, $boarddir, $txt, $modSettings;
You need:
$boardurl, $boarddir, & $modSettings.

Thanks SA™!

Offline gameballa

  • Jr. Member
  • **
  • Posts: 108
    • GamerComp.com
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #999 on: November 21, 2010, 05:25:49 PM »
Thanks for creating this MOD!!!

Just one question

After one of my members have logged in using facebook connect I want to send them to the index.php page rather than forum page....
Online Videogame Competitions = Play 4 Free or 4 Cash @ GamerComp.com


"The only way you will ever have peace is if you no longer believe the lie is true"