Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Facebook Connect - Allow your users to login with their Facebook account Details »
Facebook Connect - Allow your users to login with their Facebook account
Mod Version: 2.0.5, by sllik (Member) sllik is offline
Developer Last Online: Dec 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (78 votes - 4.72 average) Installs: 499
Released: 10 Dec 2008 Last Update: 24 Mar 2009 Downloads: 6148
Not Supported DB Changes Uses Plugins Template Edits Additional Files Translations External Content  

Facebook Connect
This add-on allows your guests and existing users to login with their Facebook account through Facebook Connect.

WORKS WITH 3.8!

Benefits of Facebook Connect
  • Users can simply login with their Facebook account without going through the registration process.
  • Increase user interaction and your traffic through Facebook notifications and news-feeds!
Features
Facebook users will be able to receive Facebook notifications when:
  • There is a reply to their thread or a thread that they're subscribing to
  • They receive a new PM
News-Feed will be published on to the user's wall when the user:
  • Logs in for the first time
  • Replies to a thread
  • Creates a new thread
Fetch user data from Facebook
Fetch data like name, location, profile picture and use it on your forums! (NOTE: Some data may not be available for some users)

Automatically befriend user's friends
If any of the user's friends are also registered on the forum, they will automatically be friends!

How to Upgrade From 2.0.0 to 2.0.1
  • Upgrade the product. (Import the product XML again and set overwrite to yes).
  • Update Feed Template IDs in the settings (make sure they are the same as at: FB Connect Options -> News-Feed Templates)
How to Upgrade From 2.0.1 to 2.0.2
See UPGRADE.html
  • Fixed the notification problem (notifications were sent to wrong people)
  • Login button will now be displayed on vbAdvanced pages
How to Upgrade From 2.0.2 to 2.0.3
See UPGRADE.html
  • Fixed the Facebook avatar displayed for the wrong people problem.
  • Added Facebook UID & Profile URL field to data map.
Professional Install/Upgrade/Support Services
Want this mod professionally installed? It's guaranteed to work on your forum! Download the archive and see INSTALL.html/UPGRADE.html for more details!

Troubleshooting
Server Requirements:
PHP 5

If you get an error:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Means that there is something wrong with your callback URL. Your callback URL must be where xd_receiver.htm is; so when you enter [callbackurl]/xd_receiver.htm into your browser you should see a blank page (not a 404 page not found error or anything else).

If you get a continues this means there is a javascript error. Make sure you've done all the template edits correctly (especially footer & navbar). Clear your cache and reload the page.

If nothing happens when you click the Facebook Connect button make sure your callback url domain is the same as you forum domain (the one set in your forum settings) - more specifically make sure that there is a www (or isn't) in both domains.


Many more features may be implemented in the future so keep checking for updates.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	shot1.png
Views:	4316
Size:	103.3 KB
ID:	90376   Click image for larger version

Name:	shot2.png
Views:	6026
Size:	105.8 KB
ID:	90377   Click image for larger version

Name:	shot3.png
Views:	6894
Size:	139.5 KB
ID:	90378   Click image for larger version

Name:	shot4.png
Views:	6001
Size:	106.3 KB
ID:	91218  

Click image for larger version

Name:	shot5.png
Views:	5119
Size:	60.9 KB
ID:	91219  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #811  
Old 08 Jan 2009, 14:24
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Originally Posted by Calash View Post
Has anybody played with having other activities outside of Thread stuff report back to Facebook yet? I thought I saw a link to some documentation on how to format requests, but I can not seem to find it. I was thinking of stuff like adding pictures, comments on profiles, and for my own use eFiction actions of story posting and reviews.
Wow that would be amazing but I'm already astonished at how much this mod does!
Reply With Quote
  #812  
Old 08 Jan 2009, 16:43
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by jlew24asu View Post
are people having to clear their cookies and cache everytime they log into their board?

I get this almost everytime

The Facebook Connect cross-domain receiver URL (http://sundeviltalk.com/xd_receiver....%220.711%22%7D) must have the application's callback url (http://www.sundeviltalk.com/) as a prefix. You can configure the callback url in the application's settings.





-------------
I just tried going back to your board and logging in again. It logged me right in with no problems from the vBa homepage. I then logged out and back in just in case from your forum home page and I still didn't receive any errors. And I'm still on a the same browser session as when I registered. (Yeah, I know, I should probably restart this thing)
__________________
Reply With Quote
  #813  
Old 08 Jan 2009, 17:03
jlew24asu jlew24asu is offline
 
Join Date: Nov 2006
Originally Posted by Digital Jedi View Post
I just tried going back to your board and logging in again. It logged me right in with no problems from the vBa homepage. I then logged out and back in just in case from your forum home page and I still didn't receive any errors. And I'm still on a the same browser session as when I registered. (Yeah, I know, I should probably restart this thing)
LOL you havn't restarted your browser since originally registering? would you mind restarting your browser and trying again?
Reply With Quote
  #814  
Old 08 Jan 2009, 17:13
L2V L2V is offline
 
Join Date: May 2008
Originally Posted by jlew24asu View Post
are people having to clear their cookies and cache everytime they log into their board?

I get this almost everytime

The Facebook Connect cross-domain receiver URL (http://sundeviltalk.com/xd_receiver....%220.711%22%7D) must have the application's callback url (http://www.sundeviltalk.com/) as a prefix. You can configure the callback url in the application's settings.
-------------
One thing I notice is that the cross-domain receiver URL is lacking the www that is specified in the application's callback url... Try to go back to your page but with (or without) the www in there and try again.

One thing I;ve done on my site is to add the following to the start of the htaccess file to 301 redirect any www.domainname.com addresses to a domainname.com address instead.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is for Apache with mod-rewrite enabled... And, no, sorry... I can't offer help on mod-rewrite if you can't figure it out.

Hope this helps!
Reply With Quote
  #815  
Old 08 Jan 2009, 17:29
jlew24asu jlew24asu is offline
 
Join Date: Nov 2006
Originally Posted by L2V View Post
One thing I notice is that the cross-domain receiver URL is lacking the www that is specified in the application's callback url... Try to go back to your page but with (or without) the www in there and try again.
thanks for the reply. I've been down this road so many times I was forced to just pay for a professional install. I tried pretty much every www http senario out there. since the pro, its been working more often but I'm still getting this error. I really hope me and my users are not forced to clear cookies and cache everytime they try to log in.

Originally Posted by L2V View Post
One thing I;ve done on my site is to add the following to the start of the htaccess file to 301 redirect any www.domainname.com addresses to a domainname.com address instead.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is for Apache with mod-rewrite enabled... And, no, sorry... I can't offer help on mod-rewrite if you can't figure it out.

Hope this helps!
I don't use htaccess
Reply With Quote
  #816  
Old 08 Jan 2009, 17:45
ClaytonR ClaytonR is offline
 
Join Date: Jan 2005
I have a issues, for some reason my users have the wrong person's picture, it was working fine then this morning it had them all with the profile pic of one of our administrators.

EDIT its only happening with avatars in the posts, their avatars are correct on the memberlist.

Last edited by ClaytonR; 08 Jan 2009 at 18:17.
Reply With Quote
  #817  
Old 08 Jan 2009, 18:08
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by jlew24asu View Post
LOL you havn't restarted your browser since originally registering? would you mind restarting your browser and trying again?
Still no problems. This time I was auto logged in. Logged out again with no problems either.
__________________
Reply With Quote
  #818  
Old 08 Jan 2009, 18:16
jlew24asu jlew24asu is offline
 
Join Date: Nov 2006
Originally Posted by Digital Jedi View Post
Still no problems. This time I was auto logged in. Logged out again with no problems either.
ok thanks for checking.
Reply With Quote
  #819  
Old 08 Jan 2009, 22:31
Caddyman's Avatar
Caddyman Caddyman is offline
 
Join Date: Mar 2006
ok i gotta post

GREAT MOD! really i am impressed!

installed!

on a new signup from facebook all is well

i can also hit it, enter fb info on the fb login on my forum then click "use existing username" on the nickname popup and login with a existing account just fine

BUT

when doing that and linking to a existin account i dont get the popups for posts and the fbconnect email settings link in the usercp and all....

anyone know why?
__________________
Delaware Online
Reply With Quote
  #820  
Old 08 Jan 2009, 23:10
floggerss floggerss is offline
 
Join Date: Oct 2008
It is possible that users that have an user in the forum can use their facebook account. Not to register a new one???
__________________
http://www.stylers.com.ar/
Reply With Quote
  #821  
Old 08 Jan 2009, 23:11
Wakey Wakey is offline
 
Join Date: Dec 2008
Real name: Simon Wakefield
Originally Posted by ClaytonR View Post
I have a issues, for some reason my users have the wrong person's picture, it was working fine then this morning it had them all with the profile pic of one of our administrators.

EDIT its only happening with avatars in the posts, their avatars are correct on the memberlist.
Its the issue I have been having as, their locations will also be afflicted with the same issue but only on the posts, profile and memberlist will be fine
Reply With Quote
  #822  
Old 09 Jan 2009, 01:34
bojan.vasiljev bojan.vasiljev is offline
 
Join Date: Aug 2008
Can I get some help?

I installed this plugin and when I try to map facebook data or go to member profile following shows up on the screen

query_first(" SELECT fbuid FROM " . TABLE_PREFIX . "fbuser WHERE userid = " . $userid . " LIMIT 1 "); return intval($user['fbuid']); } function fetch_fbuser_info($query) { require_once(DIR . '/includes/facebook/facebook.php'); global $vbulletin, $db; $fbusers = $db->query_read($query); $fbuids = ""; $vbuids = array(); while ($fbuser = $db->fetch_array($fbusers)) { if ($fbuser['fbuid']) { $fbuids .= $fbuser['fbuid'] . ","; $vbuids[] = $fbuser['userid']; } } $fbuids = rtrim($fbuids, ','); $fbuserinfo = $vbulletin->session->vars['fbuserinfo']; if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $fbuser = $vbulletin->facebook->api_client->users_getInfo($fbuids, 'name, first_name, last_name, affiliations, pic, pic_small, pic_square'); for ($i = 0; $i < count($fbuser); $i++) $fbuserinfo[$vbuids[$i]] = $fbuser[$i]; $vbulletin->session->set('fbuserinfo', $fbuserinfo); } catch(FacebookRestClientException $ex) { } //print_r($vbulletin->session->vars['fbuserinfo']); } function set_fb_data(&$target, $userid = '', $profilefield = false) { require_once(DIR . '/includes/facebook/facebook.php'); global $vbulletin, $db, $show, $vbphrase, $fb_field_map, $avatarurl; if ($userid) $target['userid'] = $userid; if ($vbulletin->options['fbconnect_importdata'] && $target['userid'] != '') { $fbuserinfo = $vbulletin->session->vars['fbuserinfo']; if (!is_array($fbuserinfo[$target['userid']])) { $fbuid = get_fb_uid($target['userid']); if ($fbuid) { if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $fbuser = $vbulletin->facebook->api_client->users_getInfo($fbuid, 'name, first_name, last_name, affiliations, pic, pic_small, pic_square'); $fbuserinfo[$target['userid']] = $fbuser[0]; $vbulletin->session->set('fbuserinfo', $fbuserinfo); } catch(FacebookRestClientException $ex) { } } } if (is_array($fbuserinfo[$target['userid']])) { if (!is_array($fb_field_map)) { $fb_field_map = array(); $profile_fields = $db->query_read(" SELECT * FROM " . TABLE_PREFIX . "fbdatamap "); while ($field = $db->fetch_array($profile_fields)) { $fb_field_map[$field['vbfield']] = $field['fbfield']; } } $not_profile_field = array('avatarurl', 'profilepicurl'); foreach ($fb_field_map as $vbfield => $fbfield) { if ($profilefield && $target['value'] && $target['value'] != $vbphrase['n_a']) continue; if ($target[$vbfield] && pathinfo($target[$vbfield], PATHINFO_BASENAME) != 'unknown.gif') continue; if ($fbfield == 'affiliations') { if (is_array($fbuserinfo[$target['userid']][$fbfield])) { foreach ($fbuserinfo[$target['userid']][$fbfield] as $network) { if ($network['type'] == 'region') { $fbuserinfo[$target['userid']][$fbfield] = $network['name']; break; } } } } if ($profilefield) { if ($vbfield == ('field' . $target['profilefieldid'])) { $target['value'] = $fbuserinfo[$target['userid']][$fbfield]; break; } } else $target[$vbfield] = $fbuserinfo[$target['userid']][$fbfield]; } if ($target['avatarurl']) { $avatarurl = $target['avatarurl']; $show['avatar'] = true; } } } } function print_datamap_row($vbdata, $fbdata, $vbselected = "", $fbselected = "") { global $vbphrase; echo ' '; if ($vbselected) echo '[ '.$vbphrase['delete'].' ]'; echo ' '; }
Reply With Quote
  #823  
Old 09 Jan 2009, 08:22
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Originally Posted by Caddyman View Post
ok i gotta post

GREAT MOD! really i am impressed!

installed!

on a new signup from facebook all is well

i can also hit it, enter fb info on the fb login on my forum then click "use existing username" on the nickname popup and login with a existing account just fine

BUT

when doing that and linking to a existin account i dont get the popups for posts and the fbconnect email settings link in the usercp and all....

anyone know why?
I have the same problem and take it that this is due to the usergroup settings.
Reply With Quote
  #824  
Old 09 Jan 2009, 12:26
Caddyman's Avatar
Caddyman Caddyman is offline
 
Join Date: Mar 2006
that said though...

fbconnect doesnt have a certain usergroup to make it work does it? it just makes you pick a default group to add people to...

guess im saying, if you were to add these users to that group, i dont think that would fix the issue would it?
__________________
Delaware Online
Reply With Quote
  #825  
Old 09 Jan 2009, 13:35
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Well the way I understood the instructions was that we had to create a totally separate usergroup, which I did. Thus when you select a username that already exists it doesn't work the same way...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:18.

Layout Options | Width: Wide Color: