The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Facebook Connect - Allow your users to login with their Facebook account (for 3.8) Details »» | |||||||||||||||||||||||||||
Facebook Connect - Allow your users to login with their Facebook account (for 3.8)
Developer Last Online: Dec 2011
Staff Note: Moved to Graveyard - this will never work now that the old style facebook authentication is no longer available.
Facebook Connect This add-on allows your guests and existing users to login with their Facebook account through Facebook Connect. There is NO NEED to upgrade or reinstall if you already installed this mod for 3.7 Upgrade to 2.0.6 so that users with the new super long IDs will be able to login. This mod conflicts with PhotoPost vBGallery! Quick fix: Disable the following PhotoPost vBGallery plugins:
Benefits of Facebook Connect
Facebook users will be able to receive Facebook notifications when:
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! 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: Code:
The Facebook Connect cross-domain receiver URL http://www.SITEURL.com/xd_receiver.h...%220.699%22%7D must have the application's callback URL http://www.SITEURL.com/forums/ as a prefix. You can configure the callback URL in the application's settings. 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. Show Your Support
|
Comments |
#1102
|
|||
|
|||
Quote:
|
#1103
|
|||
|
|||
I had to reinstall this mod, And not the "facebook" longon button has gone
|
#1104
|
|||
|
|||
Hi guys,
this looks like a great mod but can anyone tell me what happens with current forum members which have facebook accounts? Is there a way to link a vb account to a facebook account? Thanks in advance! |
#1105
|
|||
|
|||
Installed it in vBulletin? Version 3.8.2 and getting an error:
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 ' '; } Fatal error: Call to undefined function set_fb_data() in ...\includes\class_postbit.php(294) : eval()'d code on line 140 |
#1106
|
|||
|
|||
Is it possible to auto enable the "Publish this story" to facebook as at the moment, every reply and post it asks me and its doing my head in.
|
#1107
|
|||
|
|||
Thanks
|
#1108
|
|||
|
|||
Quote:
|
#1109
|
|||
|
|||
So if someone logs in with their facebook account.. ie.. if a guest logs in with his facebook account.. what does his username become when he posts? If he logs in with his facebook account does it add a new member to the forum or no?
|
#1110
|
||||
|
||||
They will be able to choose a user name after they connect with the FB button So yes, they will become a new member of the forum after they've chosen a user name.
|
#1111
|
|||
|
|||
Quote:
It annoys me, every post or reply i make I have to say if i want to publish it or not!!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|