vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Facebook Connect - Allow your users to login with their Facebook account (https://vborg.vbsupport.ru/showthread.php?t=198499)

Verionia 01-04-2010 04:44 AM

Quote:

Originally Posted by UpFriends (Post 1946043)
+1 ! I see there is a lot of interest for this in vB4....I'm hoping to see it as well.

Me too!:)

xTerMn8R 01-04-2010 10:38 PM

Thank you DJ for answering all my questions, One other thing I did notice is that members that Join my Site from Facebook are Not Listed in the Members List from the Navbar menu. I can see them using my admin Panel though...

Thanks again...
:)

AllinJac 01-06-2010 02:08 PM

Hey I don't think any other users have had this problem.. but here is my problem:

On our boards, we just loaded on the script (JUST about flawless by the way, I don't know whats up with anyone's complaints A++ on the install, nice and easy. Only thing that made it NOT flawless, was ME!).. It's running fine - but one of our users (he's ranked as a super-admin) tries to log in, and when he connects through FaceBook it logs him into another admin's account on the forums.. BUT when the user logs in the normal way, it loads his normal account.. they don't have the same FaceBook accounts, obviously or anything similar in the names, so it's not something stupid like a typo in the login.

I'm looking for a response from the developer - you got any idea why one user say, user X, logs in using FBConnect & it puts him onto a different account, account Y. They are both admins, and I can only hope and pray that this doesn't happen with a normal member who gets granted admin powers - so time is of the essence here if you come around, thanks!!

Bestrafung 01-12-2010 02:08 PM

If this has already been posted I apologize, there's just too many pages to read through and I don't know if it's exhaustion or not but I can't find the search this thread feature (is there one?). This has been working great for us but we need to move our forums to a new server and we have issues with this mod. If I disable this mod everything works great but if I enable it I get something similar to this when trying to view posts:
Code:

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 .=
I only included a little bit but can enable the forums or PM for more code if desired. I created a new facebook app and updated the apikey and secret, tried both upgrade and reinstalling, double checked the fbuser table in the database, and double checked all template edits. I can't figure it out and was hoping someone else might be able to help. Also, apache/mysql/php versions are the same for both servers as this was mentioned for another issue.

Edit: forgot to include some links. Current server fully functioning and new server.

ngkong 01-13-2010 11:28 AM

Quote:

Originally Posted by UpFriends (Post 1946043)
+1 ! I see there is a lot of interest for this in vB4....I'm hoping to see it as well.

+1 :D
what an awesome plugin!

KID_1194 01-19-2010 09:15 AM

This is what I got when I used this plugin on vb3.8.4

Quote:

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 ' '; }

Bacon Butty 01-19-2010 11:21 AM

Quote:

Originally Posted by Bacon Butty (Post 1850676)
Any way to prevent the login status php script running when members are already logged in? - even ones without a facebook account.

Any chance anyone can help with this?

Its really driving me insane :(

Basically, the below intermittently appears;

http://img15.imageshack.us/img15/3652/loginqg.jpg

LifesGreatestGift 01-24-2010 08:06 AM

Will this be upgraded to support 4.x.x?

jbj 01-29-2010 11:02 AM

Im confused with this in the instructions.

Set the Callback URL to your vBulletin url (example: http://www.siteurl.com/forum/)
I see allot of callback url settings.
What specific callback URL do I need to set here?
I see Information Update Callback URL,Post-Authorize Callback URL,Post-Remove Callback URL


Go to the Canvas tab and set the Canvas Page URL (to whatever you want)
What is a canvas page? :confused:

Thanks!

fmckinnon 01-29-2010 01:34 PM

Hey,
Has anyone else gotten this warning from Facebook Developers? I'm assuming this is applying to this plugin, as we aren't using any other "facebook connect" features on our site. See below, hope to hear back from the coder. We are running the latest version:

Quote:

We've been reviewing our logs and see that you're still using Facebook.showFeedDialog, one of the Feed APIs that we deprecated last October. In order to provide you with ample time to complete this transition, we will stop supporting this call on February 16, 2010 at 10AM PST.

We want to remind you that starting on that day, the only way to publish Feed stories into the stream will be via the stream publishing methods (stream.publish, FB.Connect.streamPublish, and Facebook.streamPublish). Posts published using the stream publishing methods contain only structured plain text data, which makes them easier to render on a variety of devices, including mobile phones and gaming consoles.

If you are using the Word Press PlugIn, you should update to the newest version (1.2.0) available here.

We will still publish stories when you call users.setStatus and status.set, but we encourage all developers to migrate to the stream publishing methods, as they let you set a user's status easily.

Read more detail about these changes on the Stream page of our Developer Roadmap.

We originally announced these changes on our Developer blog on October 23rd, 2009, and included another reminder on December 2nd, 2009. Stay up to date on our upcoming changes by referring to our Developer Roadmap. You can also subscribe to our blog posts via email, where we announce major upcoming changes.

Thank you,
The Facebook Developer Network


All times are GMT. The time now is 10:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02561 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete