Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) Details »»
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0)
Version: 3.0.5, by mtbikemike mtbikemike is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.7 Rating:
Released: 09-12-2011 Last Update: 09-29-2011 Installs: 56
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

I rewrote this plugin using ideas from sllik's mod.

Not Supported!!
This code is not supported. The Facebook API has since changed. Only provided for open source purposes ... feel free to modify at your own risk.

Download Now

File Type: zip fbconnect-3.0.4.zip (35.4 KB, 212 views)
File Type: zip fbconnect-3.0.5.zip (35.6 KB, 954 views)

Screenshots

File Type: jpg indexpage-logged-in.JPG (30.4 KB, 0 views)
File Type: jpg newpost.JPG (36.0 KB, 0 views)
File Type: jpg indexpage.JPG (50.8 KB, 0 views)
File Type: jpg connectpage.JPG (99.9 KB, 0 views)
File Type: jpg FBConnectClickFlow.jpg (46.7 KB, 0 views)
File Type: jpg FBConnectSession.jpg (44.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
JohorBahru, Taringa! CS, Vibhor

Comments
  #202  
Old 11-12-2012, 05:28 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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..
Reply With Quote
  #203  
Old 11-13-2012, 01:24 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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)
Reply With Quote
Благодарность от:
ChiNa
  #204  
Old 11-25-2012, 05:37 AM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #205  
Old 11-25-2012, 05:52 AM
RyanFabbro's Avatar
RyanFabbro RyanFabbro is offline
 
Join Date: Aug 2012
Location: MI, USA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use https://vborg.vbsupport.ru/showthread.php?t=223555 it works perfectly just be sure to set it up right
Reply With Quote
  #206  
Old 11-25-2012, 09:00 PM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RyanFabbro View Post
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!
Reply With Quote
  #207  
Old 11-26-2012, 05:45 AM
RyanFabbro's Avatar
RyanFabbro RyanFabbro is offline
 
Join Date: Aug 2012
Location: MI, USA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 =)
Reply With Quote
  #208  
Old 11-29-2012, 09:22 AM
RyanFabbro's Avatar
RyanFabbro RyanFabbro is offline
 
Join Date: Aug 2012
Location: MI, USA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 =(
Reply With Quote
  #209  
Old 12-02-2012, 05:01 PM
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RyanFabbro View Post
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!
Reply With Quote
  #210  
Old 12-03-2012, 10:08 PM
RyanFabbro's Avatar
RyanFabbro RyanFabbro is offline
 
Join Date: Aug 2012
Location: MI, USA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
ChiNa
  #211  
Old 12-03-2012, 11:40 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
@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!
Reply With Quote
Reply

Thread Tools

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

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.16392 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete