Advertisement:

Author Topic: SA Facebook Integration  (Read 1035146 times)

Offline mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #480 on: June 20, 2010, 09:50:25 PM »
firstly gotta say: REAL Awesome Stuff..  ;D - u saved me hours of work brav..
so i setup this thing, put in my API secret, API Key, and the ID, and all worked fine, i got asked for permission stuff when trying to integrate my facebook account... i authorized it, but after that when i click on "Integrate with Facebook" I get something like what you see on the screenshot, (basically nothing happens, just the page refreshes after showin the FB dialog as shown on the screenshot)..

So looking at the source, i saw the link is something like:
Code: [Select]
<a href="" onclick="fbLogincheck();">Integrate with facebook</a>
So whats it supposed to do after checkin login
I got no idea where its going wrong...

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 #481 on: June 20, 2010, 09:58:39 PM »
it should redirect to action=facebook after you autherise it keep trying somtimes facebook gos like this unfortuantly it is out of my control
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #482 on: June 20, 2010, 10:03:57 PM »
I have been trying since yesterday, thats why i decided to post for help now.. i finally gave up..
Actually is there anything other then the Connect URL/base domain then i need to setup at Facebook? a url facebook will ping?

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 #483 on: June 20, 2010, 10:11:47 PM »
did you set and email domain? can have a link to your site please?
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #484 on: June 20, 2010, 10:24:27 PM »
yeah sure, its studentforums.biz

and what do you mean by if i setup a email domain??

I just wanted to tell you that i just manually put up the link such that its not a href="#" but a href="?action=facebook"

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 #485 on: June 20, 2010, 10:29:45 PM »
yes that will work like that but if your not logged in fb and goto action=facebook it wll throw erros

it is working for me i just registerd at your site with facebook connect
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #486 on: June 20, 2010, 10:33:30 PM »
uh oh, ok,
sorry - i guess i should have created another fb account to test it...

Thnx for the help... and also GREAT MOD!

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 #487 on: June 20, 2010, 10:36:22 PM »
np 8)
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #488 on: June 20, 2010, 10:40:31 PM »
Just another thing - did you have any problems after logging in?
what happens when you click facebook connect? thnx brav

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 #489 on: June 20, 2010, 10:43:56 PM »
nope none at all when you click facebook conenct you get the facebook popup after that it redirect to action=facebook
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #490 on: June 20, 2010, 10:56:59 PM »
thats awesome brav..
U r awesomeInfinite
:D
Thanks - btw, sorry for a lil late reply, went downstairs to eat  ;D

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 #491 on: June 20, 2010, 10:58:22 PM »
late reply? that was quike to me lol
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 mursalat

  • Semi-Newbie
  • *
  • Posts: 12
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #492 on: June 20, 2010, 11:24:54 PM »
awesome - since you saved me, i will be ur slave for the next .5 hour, then i gotta go outside,

Anyway, here is my lil contribution:

some of you guys dont like the way the share button comes just above the Topic, you can fix it by going to Themes/default/Display.template.php
then instead of
adding:
Code: [Select]
';
if ($context['show_fb_share_button']){
   echo'<script type="text/javascript">
           var mod_settings_fb_share = "',$context['current_topic'],'";
            </script>
        <span id="share"></span>
        <script type="text/javascript">
            Get_share();
            </script>
                <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
}
   echo'

after
Code: [Select]
<tr class="catbg3">
Do this:
replace
Code: [Select]
', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
with:
Code: [Select]
';
if ($context['show_fb_share_button']){
   echo'<script type="text/javascript">
           var mod_settings_fb_share = "',$context['current_topic'],'";
            </script>
        <span id="share"></span>
        <script type="text/javascript">
            Get_share();
            </script>
                <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
}
echo
$txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>

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 #493 on: June 20, 2010, 11:26:37 PM »
thanks for sharing :)
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 bahgheera

  • Semi-Newbie
  • *
  • Posts: 82
    • The FLipside
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #494 on: June 21, 2010, 01:45:10 AM »
@SleepyArcade - do you have a response for my post back on page 23? About people logging in as admin due to this plugin?

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 #495 on: June 21, 2010, 01:49:42 AM »
no cos i cannot replicate this the only i think that can happen is if they have the same name as the admin on facebook but i doubt it considering each facebook id is unick to that user

i logs the user in using the  id so if you was john smith clikc the facebook connect button it will look for the the user id from facebook the search the members table for that id then it will do the login stuff
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 MATTEK

  • Sr. Member
  • ****
  • Posts: 977
  • Gender: Male
  • Tyrannical
    • The Unsung Heroes
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #496 on: June 21, 2010, 03:27:01 AM »
Does this mod conflict with any other facebooks mods? I'm trying to install and it says it's corrupt or incompatible with my version of SMF.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #497 on: June 21, 2010, 06:03:23 AM »
Does this mod conflict with any other facebooks mods? I'm trying to install and it says it's corrupt or incompatible with my version of SMF.
I've been using this mod for quite some times now and it's awesome. And yes, from my past experience it does conflict with other facebook mods (which you do not need with this mod installed). And normally, I use mod page to download the mod, upload it back to my forum and install it there; as sometimes directly download and install from Package Server [Simple Machines Third-party Mod Site] cause me problems like yours (" it's corrupt or incompatible").

Offline JonoJames

  • Semi-Newbie
  • *
  • Posts: 24
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #498 on: June 21, 2010, 11:01:42 AM »
I'm trying to get FB Connect mod to work with external pages from the forum, i tried the code you gave at the top but got an error from load.php when saying that show_facebook(); was already defined.

Any ideas how to get this working?

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 #499 on: June 21, 2010, 12:19:07 PM »
try this one

Code: [Select]
show_facebook_ext();
function show_facebook_ext()
{
    global $settings, $user_info, $context, $txt, $modSettings;

    if ($context['user']['is_logged'] && !empty($modSettings['fb_enable']))
    {
        if (!empty($user_info['fbname']))
            echo '<img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="#" onclick="javascript:fbLogincheck(); return false;">'.$txt['fb_title'].'</a>';
        else
            echo ' <img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="#" onclick="javascript:fbLoginsync(); return false;">'.$txt['fb_integrate'].'</a>';
   
        echo'<br /><br />';
    }
    elseif (!empty($modSettings['fb_enable']))
        echo'<a href="#" onclick="javascript:fbLogin(); return false;"><img src="http://b.static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif" alt="" /></a>';
}
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 -___-