vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) (https://vborg.vbsupport.ru/showthread.php?t=270219)

ChiNa 11-12-2012 05:28 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2380006)
I see this thread reported but we (forum staff) do not fix broken mods. I see the mod author was online as recently as last month, I suggest PMing him (1 person do it, he doesn't need 10 PMs) and explain the issue.

Otherwise if everyone is having this problem you should disable or remove it until it is fixed.


Thank you so much BOP5, I am a bit suprised about it! It really happend 2times, :( And we have removed it, but thats the only good FACEBOOK INTEGRATION right now.. Hopefully someone can fix it!

Thank you all for following up on this..

dartho 11-13-2012 01:24 AM

@ChiNa-Man - Have you look at the fbuser table in your database to see what user id's map to what facebook id's? If I'm reading the code right, this should be where it maps facebook accounts to vbulletin users and duplicate IDs should be obvious.

Also worth finding out is
if users logged into VB, and then click facebook connect;
or if the click facebook connect whilst logged out and then said add to an existing vb account;
or if clicked facebook connect and then created a new vb account.

If you can find a pattern, it's probably fixable.

My interest in this is that I am trying to get twitter account integration working, which also users OAuth. The libraries I am using for this would make it easy to change to Facebook assuming I get it right for twitter. WHen I say integration - I only mean to log in and create an account if needed - I'm not looking any further than an authentication mechaism (no posting back to twitter or anything like that)

kapoor22 11-25-2012 05:37 AM

Any chance if fbconnect-3.0.4 or fbconnect-3.0.5 could work with vb3.7.4? Anyone here tried it yet?

Thank you!

RyanFabbro 11-25-2012 05:52 AM

use https://vborg.vbsupport.ru/showthread.php?t=223555 it works perfectly just be sure to set it up right

kapoor22 11-25-2012 09:00 PM

Quote:

Originally Posted by RyanFabbro (Post 2384804)
use https://vborg.vbsupport.ru/showthread.php?t=223555 it works perfectly just be sure to set it up right

Thanks Ryan, I tried using 'YAFB - Yay! Another Facebook Bridge' but this mod is using old Facebook policy and is unlikely to work.

Here is my experience installing this mod with version fbconnect-3.0.5 on vbulletin v 3.7.4.

Followed all the steps and it almost worked but for a blank page at the last step when testing fConnect. Looking at apache logs found following error:

-------------------------------------------
PHP Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the JSON PHP extension.' in /home/ivprod/www/forum/includes/facebook/base_facebook.php
-------------------------------------------

Facebook needs the JSON PHP extension. Make sure that you enabled using of JSON extension in your PHP.ini file under PHP installation. Also make sure that php_json library is located in 'ext' sub folder of your PHP installation folder.

I was getting the error because of PHP version 5.1.6 (i.e. less than PHP version 5.2). JSON (JavaScript Object Notation) package comes default with PHP version 5.2 or greater. To make this to work, I'd to install JSON on PHP version 5.1.6

To install JSON on PHP 5.1.6 I used the steps in the following links:
1.) http://netoflotus.wordpress.com/2012...-centosrhel-5/
2.) http://maisonbisson.com/blog/post/12...entos-php-516/

But was stuck at the step of the actual JSON insll and I used these commands (all doing the same thing), but install kept on throwing error:
sudo pear install json-1.2.1.tgz
pear install json-1.2.1.tgz
pecl install json
pear install pecl/json

The error I was getting was:
-------------------------------------------
/usr/bin/phpize: /tmp/tmpR9mvV5/json-1.2.1/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed

-------------------------------------------

To resolve this, I used the note at:
http://forums.cpanel.net/f5/php-json...tml#post273809

Then I went back and following following steps:

pear install pecl/json
mount -v -o remount,noexec /tmp
mount -v -o remount,noexec /var/tmp
cat 'extension=json.so' > /etc/php.d/json.ini
sudo service httpd reload
$php -r 'var_dump(function_exists("json_encode"));'
bool(true)

This should be it. Now Facebook Connect works without any issue on vBulletin 3.7.4.

If you are already on php 5.2 or greater, this mod should work without having to install JSON.

Hope this is useful for someone who wants to install this mod on 3.7.x or for an earlier version of PHP.

Thanks for this Mod!

RyanFabbro 11-26-2012 05:45 AM

YAFB works perfectly on 387 and my server is 100% up to date thats all i know, this one dont work that one does =)

and i even made a nice little addition for YAFB =)

RyanFabbro 11-29-2012 09:22 AM

kapoor, i wanted to point out to you, you may have got this working but theres a major error with it atm, its causing users to log into other users account.

for example i just installed this on my test board.
i logged into facebook on firefox linking my accounts so my admin would log in with my main fb.

i then logged into another fb account on google chrome, went to my site hit the button and it should have taken me to the register page, instead it logged me into the admin account, and these were 2 seperate fb accounts.

this has been reported by a few members if you read through the comments

but also now YAFB is having troubles too, so looks like fb connect for vb3 just died =(

kapoor22 12-02-2012 05:01 PM

Quote:

Originally Posted by RyanFabbro (Post 2386387)
kapoor, i wanted to point out to you, you may have got this working but theres a major error with it atm, its causing users to log into other users account.

for example i just installed this on my test board.
i logged into facebook on firefox linking my accounts so my admin would log in with my main fb.

i then logged into another fb account on google chrome, went to my site hit the button and it should have taken me to the register page, instead it logged me into the admin account, and these were 2 seperate fb accounts.

this has been reported by a few members if you read through the comments

but also now YAFB is having troubles too, so looks like fb connect for vb3 just died =(

Thanks Ryan, for sharing this information. I must say that we have thoroughly this tested every possible used case with every browser, including chrome, and we did not experience any issue.

Also, to be on the safe side, we deleted Admin record from vb_fbuser table.

It seems in your test, after logging using FB connect, you did not logout from FB even when
you logged out from the vBulletin. FB keeps the login info in cookie which is why it logged you the 2nd time as Admin. If you try a different browser on the same machine, or, if you try a different machine, you will not see this issue.

We continue to use this plug-in in our production without any issue. Thank you again!

RyanFabbro 12-03-2012 10:08 PM

re read what i wrote. "i was logged into 2 separate fb accounts on 2 separate browsers so there was no cookie issue...

but you did mention your using an older version of vB3 so it may still work properly with older versions, but as far as 3.8.7 PL3 it causes users from all over the world, to log into other users account upon connecting with facebook. i am not the only person having this problem, you may have avoided it by using the older vb, but it deffently is not working with the latest vb, and is a major security concern.

i will be posting a separate 3rd party add on that allows facebook connect, along with gtalk, twitter, live and tons more here shortly.

ChiNa 12-03-2012 11:40 PM

Quote:

Originally Posted by dartho (Post 2380688)
@ChiNa-Man - Have you look at the fbuser table in your database to see what user id's map to what facebook id's? If I'm reading the code right, this should be where it maps facebook accounts to vbulletin users and duplicate IDs should be obvious.

Also worth finding out is
if users logged into VB, and then click facebook connect;
or if the click facebook connect whilst logged out and then said add to an existing vb account;
or if clicked facebook connect and then created a new vb account.

If you can find a pattern, it's probably fixable.

My interest in this is that I am trying to get twitter account integration working, which also users OAuth. The libraries I am using for this would make it easy to change to Facebook assuming I get it right for twitter. WHen I say integration - I only mean to log in and create an account if needed - I'm not looking any further than an authentication mechaism (no posting back to twitter or anything like that)

Thanks a lot for the reply!

The users who were logged into other accounts were people that never been registered on our forum befor. Totally new members as they tried to register through the FACEBOOK CONNECT by Clicking on the FACEBOOK NAVBAR BUTTON... And they were all being logged into our forum with another users facebook account! Now this has happend for the 3rd time, and I have also 3 times uninstalled it and re-installed it all over again.. I have checked all the TABLES over and over again! I deleted many tables called FBUID as well, still not much help. 3 times in a row is too much....

Thanks alot for the reply and So far this was the only working ADDON, hopefully someone could fix it, if not the developer!


All times are GMT. The time now is 05:09 AM.

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.01232 seconds
  • Memory Usage 1,776KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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