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 Details »» | |||||||||||||||||||||||||||
Facebook Connect - Allow your users to login with their Facebook account
Developer Last Online: Dec 2011
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
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! How to Upgrade From 2.0.0 to 2.0.1
See UPGRADE.html
See UPGRADE.html
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 |
#1282
|
|||
|
|||
Is it not possible to allow wall posting without the user being logged into facebook? Particularly what I'm talking about is an existing user that links there account but at a later date logs into the forum without using fbconnect or a fbconnect user that logs out of facebook while still on the forum... In that case it seems stories are not posted to the wall.
At first I thought maybe it's a function of face book api, but I just tried out Netflixs new face book app and it posts movie ratings without having to reconnect through facebook connect. I apologize if this has been talked about before, but finding this info would be a pain in 80+ pages. Other than that I've installed this and believe I've tested every feature possible in every way and have had ZERO problems! |
#1283
|
||||
|
||||
i have problem when [textdirection] in language setting is rtl not work but when i change it to ltr work perfect ?
|
#1284
|
|||
|
|||
I'm thinking about this idea, post your reply/ quick reply/ or new thread to your facebook as well, not sure could this be done by the facebook connect?
https://vborg.vbsupport.ru/showthread.php?t=209863 thank you |
#1285
|
|||
|
|||
hey guys im getting this error:
Code:
# facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); $facebook = $vbulletin->facebook; $fbuid = intval($vbulletin->facebook->get_loggedin_user()); if ($fbuid > 0) { $vbuser = $db->query_first(" SELECT userid FROM " . TABLE_PREFIX . "fbuser AS fbuser WHERE fbuid = " . $fbuid . " LIMIT 1 "); if ($vbuser['userid']) { $vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE userid = '" . $vbuser['userid'] . "'"); if ($vbulletin->userinfo['username']) { //set coockies vbsetcookie('userid', $vbulletin->userinfo['userid'], true, true, true); vbsetcookie('password', md5($vbulletin->userinfo['password'] . COOKIE_SALT), true, true, true); //login vb user process_new_login('', true, ''); $path_parts = pathinfo(parse_url($vbulletin->url, PHP_URL_PATH)); if ($path_parts['basename'] == 'fblogin.php') $vbulletin->url = $vbulletin->options['forumhome'] . '.php'; // do redirect if (!is_array($vbphrase)) $vbphrase = array(); do_login_redirect(); } else { $db->query_write("DELETE FROM " . TABLE_PREFIX . "fbuser WHERE fbuid = $fbuid"); $templatename = 'fbconnect_login'; } } else { //request username to create a new vb user $templatename = 'fbconnect_login'; } } else { eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], $vbulletin->session->vars['sessionurl']))); } if ($_GET['do'] == 'login') { $templatename = 'fbconnect_loginform'; } if ($_POST['do'] == 'addmember') { $vbulletin->input->clean_array_gpc('p', array( 'username' => TYPE_STR )); if (!$vbulletin->options['allowregistration']) { eval(standard_error(fetch_error('noregister'))); } $fbuserinfo = $facebook->api_client->users_getInfo($fbuid, array('proxied_email')); $fbuserinfo = $fbuserinfo[0]; // init user datamanager class $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); if ($vbulletin->options['moderatenewmembers']) { $newusergroupid = 4; } else { $newusergroupid = ((intval($vbulletin->options['fbconnect_defaultgroup']) > 0) ? $vbulletin->options['fbconnect_defaultgroup'] : 2); } $userdata->set('username', $vbulletin->GPC['username']); //generate random password $userdata->set('password', generate_password()); // set usergroupid $userdata->set('usergroupid', $newusergroupid); // set languageid $userdata->set('languageid', $vbulletin->userinfo['languageid']); // set user title $userdata->set_usertitle('', false, $vbulletin->usergroupcache["$newusergroupid"], false, false); // register IP address $userdata->set('ipaddress', IPADDRESS); $userdata->pre_save(); // check for errors if (!empty($userdata->errors)) { $_REQUEST['do'] = 'register'; $errorlist = ''; foreach ($userdata->errors AS $index => $error) { $errorlist .= "$error "; } $username = htmlspecialchars_uni($vbulletin->GPC['username']); $show['errors'] = true; } else { $show['errors'] = false; $userdata->set('email', $fbuserinfo['proxied_email']); // save the data $vbulletin->userinfo['userid'] = $userid = $userdata->save(); if ($userid) { //map fbuser to vbuser $db->query_write(" INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser (fbuid, userid) VALUES (" . $fbuid . ", " . intval($userid) . ") "); $friendcount = 0; if ($vbulletin->options['fbconnect_importfriends']) { //find friends and add to friend's list $friends = $facebook->api_client->friends_get(); if (is_array($friends) && count($friends) > 0) { $vbfriends = $db->query_read(" SELECT user.userid FROM " . TABLE_PREFIX . "user AS user, " . TABLE_PREFIX . "fbuser AS fbuser WHERE fbuser.fbuid IN (" . implode(',', $friends) . ") AND user.userid = fbuser.userid "); while ($friend = $db->fetch_array($vbfriends)) { $db->query_write(" INSERT IGNORE INTO " . TABLE_PREFIX . "userlist (userid, relationid, type, friend) VALUES (" . intval($userid) . ", " . $friend['userid'] . ", 'buddy', 'yes') "); $friendcount++; } } } $vbulletin->userinfo['fbuid'] = $userid; $userinfo = fetch_userinfo($userid); $userdata_rank =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT); $userdata_rank->set_existing($userinfo); $userdata_rank->set('posts', 0); $userdata_rank->set('friendcount', $friendcount); $userdata_rank->save(); // force a new session to prevent potential issues with guests from the same IP, see bug #2459 require_once(DIR . '/includes/functions_login.php'); $vbulletin->session->created = false; process_new_login('', false, ''); //post news-feed /* if ($vbulletin->options['fbconnect_firstlogintemplateid']) { $tokens = array( 'bbtitle' => $vbulletin->options['bbtitle'], 'bburl' => $vbulletin->options['bburl'], 'images' => array() ); try { $vbulletin->facebook->api_client->feed_publishUserAction($vbulletin->options['fbconnect_firstlogintemplateid'], $tokens, '', '', 1); } catch(FacebookRestClientException $ex) { } } */ $username = $vbulletin->GPC['username']; $email = $fbuserinfo['proxied_email']; // send new user email if ($vbulletin->options['newuseremail'] != '') { $ipaddress = IPADDRESS; eval(fetch_email_phrases('newuser', 0)); $newemails = explode(' ', $vbulletin->options['newuseremail']); foreach ($newemails AS $toemail) { if (trim($toemail)) { vbmail($toemail, $subject, $message); } } } if ($newusergroupid == 2) { if ($vbulletin->options['welcomemail']) { eval(fetch_email_phrases('welcomemail')); vbmail($email, $subject, $message); } } $vbulletin->url = str_replace('"', '', $vbulletin->url); if (!$vbulletin->url) { $vbulletin->url = $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q']; } else { $vbulletin->url = iif(strpos($vbulletin->url, 'register.php') !== false, $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q'], $vbulletin->url); } if ($vbulletin->options['moderatenewmembers']) { eval(standard_error(fetch_error('moderateuser', $username, $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), '', false)); } else { eval(standard_error(fetch_error('registration_complete', $username, $vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php'), '', false)); } } } } eval('print_output("' . fetch_template($templatename) . '");'); |
#1286
|
|||
|
|||
When I go to create an application at Facebook, it's not clear where the Callback URL is supposed to go. If I go to "edit settings" there are many types of Callback URLs all over the place, under multiple tabs.
I've tried to scan all 50+ pages of this thread, but all I hear is "what's your Callback URL set to?" or "set it in the application settings". Do I set it everywhere the word "Callback URL is set"? Like for Post Authorize Callback URL and Post Remove Callback URL, Information Update Callback URL, Publish Callback URL, etc? |
#1287
|
|||
|
|||
I am suddenly getting this error:
Code:
Application response error Invalid template bundle id specified: 12244885550. You can see this because you are one of the developers of the app. |
#1288
|
|||
|
|||
is the posting error fixed? before i got the error about not enough characters in a post
|
#1289
|
|||
|
|||
Any anwser from the coder?
|
#1290
|
|||
|
|||
Hi Sllik - this sounds like a great plugin. How would it work (if at all) for membership forums where members have to pay for a registration? Is there some way to turn off the automatic registration and just keep the feed notifications etc for existing users? Or maybe the answer is to put new FB users into a group which has same rights as an 'expired' member.
|
#1291
|
|||
|
|||
So.... this mod works perfectly for what it does. I can signup as a new user, all my posts/replies get put on my facebook. I really like it. Unfortunately I'm having a hard time integrating some other things that FB suggests in http://wiki.developers.facebook.com/...od_Connect_App.
I've tried to implement the status by changing the onDOMReady function to Code:
if(FB.Connect.get_status().result == 1) //If you're connected { elements[i].innerHTML = '<a href="#" onclick="facebook_requestSession(); return false;"><img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" border="0" alt="Connect"/></a>'; } else { elements[i].innerHTML = '<img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_small_short.gif" border="0" alt="Connect"/><span style="padding-bottom: 3px">You are Connected to Facebook</a>'; } |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|