Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
Facebook Connect - Allow your users to login with their Facebook account Details »»
Facebook Connect - Allow your users to login with their Facebook account
Version: 2.0.5, by sllik sllik is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 12-09-2008 Last Update: 03-23-2009 Installs: 499
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

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
  • Users can simply login with their Facebook account without going through the registration process.
  • Increase user interaction and your traffic through Facebook notifications and news-feeds!
Features
Facebook users will be able to receive Facebook notifications when:
  • There is a reply to their thread or a thread that they're subscribing to
  • They receive a new PM
News-Feed will be published on to the user's wall when the user:
  • Logs in for the first time
  • Replies to a thread
  • Creates a new thread
Fetch user data from Facebook
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
  • Upgrade the product. (Import the product XML again and set overwrite to yes).
  • Update Feed Template IDs in the settings (make sure they are the same as at: FB Connect Options -> News-Feed Templates)
How to Upgrade From 2.0.1 to 2.0.2
See UPGRADE.html
  • Fixed the notification problem (notifications were sent to wrong people)
  • Login button will now be displayed on vbAdvanced pages
How to Upgrade From 2.0.2 to 2.0.3
See UPGRADE.html
  • Fixed the Facebook avatar displayed for the wrong people problem.
  • Added Facebook UID & Profile URL field to data map.
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.
Means that there is something wrong with your callback URL. Your callback URL must be where xd_receiver.htm is; so when you enter [callbackurl]/xd_receiver.htm into your browser you should see a blank page (not a 404 page not found error or anything else).

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1252  
Old 03-12-2009, 06:06 PM
Boots Boots is offline
 
Join Date: Dec 2004
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm more interested in Google Connect Make a mod for that
Reply With Quote
  #1253  
Old 03-14-2009, 05:14 PM
frogster frogster is offline
 
Join Date: Feb 2009
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TriMe
The grabber doesnt work if your logged in through Facebook. If you log out, then invite.. it works. Strange. Any suggestions on how to fix? I would love both to work
EDIT*** Correction. As long as your addon is enabled, the grabber won't work. Regardless if someone is connected normally without a Facebook account or not. Nutz!!

Quote:
Originally Posted by sllik View Post
I could take a look at it tomorrow... no promises though

I get the same error when using fb connect with a fb grabber...apparently it's because two facebook libraries are installed and you have to comment out "require" somewhere but i have no clue where...

Trime / sillk /anyone was there aresolution to this please help

Fatal error: Cannot redeclare class Facebook in /home/content/*/*/*/*******/html/app/webroot/forum/includes/facebook/facebook.php on line 37
Reply With Quote
  #1254  
Old 03-14-2009, 10:44 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did anyone notice that the 'publish' button on the popup that comes up when you post a message has stopped working?

It also used to ask you if you wanted a single line or not - that is gone
Reply With Quote
  #1255  
Old 03-15-2009, 04:35 AM
filt filt is offline
 
Join Date: May 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No ideas on how to fix the error with users unable to connect with an existing username?
Reply With Quote
  #1256  
Old 03-17-2009, 06:51 AM
muratyamac muratyamac is offline
 
Join Date: Nov 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have succesfully installed the plugin but can anyone suggest me what to do with the canvas in the facebook. it's standing empty in there
Reply With Quote
  #1257  
Old 03-17-2009, 10:03 PM
P3R3 P3R3 is offline
 
Join Date: Sep 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filt View Post
No ideas on how to fix the error with users unable to connect with an existing username?
I am wondering this as well. I am on 3.8.1
Reply With Quote
  #1258  
Old 03-17-2009, 10:26 PM
fmckinnon fmckinnon is offline
 
Join Date: Jun 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

muratyamac - I think the canvas is irrelevant, doesn't matter ... doesn't ever really show a page or anything - it's not meant to be viewed that way. From what I'm reading here and the other thread, this mod is not working for anyone until some updates come out - this since the most recent FB update last week.
Reply With Quote
  #1259  
Old 03-17-2009, 10:50 PM
muratyamac muratyamac is offline
 
Join Date: Nov 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fmckinnon View Post
muratyamac - I think the canvas is irrelevant, doesn't matter ... doesn't ever really show a page or anything - it's not meant to be viewed that way. From what I'm reading here and the other thread, this mod is not working for anyone until some updates come out - this since the most recent FB update last week.
mine is pretty well working i had 5 register today only
Reply With Quote
  #1260  
Old 03-17-2009, 11:03 PM
P3R3 P3R3 is offline
 
Join Date: Sep 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We put together a fix for the user issue. There was an var mapfp that was not being set.

We changed the Map FB User to:

Code:
if (!empty($_POST['fbuid']))
{
	require_once('./includes/facebook/facebook.php');

	if ($vbulletin->facebook == null)
		$vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']);
		
	$fbuid = intval($vbulletin->facebook->get_loggedin_user());

	if ($fbuid > 0 && intval($_POST['fbuid']) == $fbuid)
	{
		//map fbuser to vbuser
		$vbulletin->db->query_write("
			INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser
				(fbuid, userid)
			VALUES
				(" . $fbuid . ", " . intval($vbulletin->userinfo['userid']) . ")
		");
	}
}
Unfortunately there is another issue that the fb breaks all the AJAX functions. None of the ajax stuff works so I added the lines:
Code:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
back in to fix this

But there is an error with facebook which we cannot resolve that breaks the publish newsfeed functionality.
Reply With Quote
  #1261  
Old 03-17-2009, 11:54 PM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filt View Post
No ideas on how to fix the error with users unable to connect with an existing username?
Please let me know how you resolved this...
Quote:
Originally Posted by P3R3 View Post
I am wondering this as well. I am on 3.8.1
Quote:
Originally Posted by P3R3 View Post
We put together a fix for the user issue. There was an var mapfp that was not being set.

We changed the Map FB User to:

Code:
if (!empty($_POST['fbuid']))
{
    require_once('./includes/facebook/facebook.php');

    if ($vbulletin->facebook == null)
        $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']);
        
    $fbuid = intval($vbulletin->facebook->get_loggedin_user());

    if ($fbuid > 0 && intval($_POST['fbuid']) == $fbuid)
    {
        //map fbuser to vbuser
        $vbulletin->db->query_write("
            INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser
                (fbuid, userid)
            VALUES
                (" . $fbuid . ", " . intval($vbulletin->userinfo['userid']) . ")
        ");
    }
}
Unfortunately there is another issue that the fb breaks all the AJAX functions. None of the ajax stuff works so I added the lines:
Code:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
back in to fix this

But there is an error with facebook which we cannot resolve that breaks the publish newsfeed functionality.
Is this for resolving "associating existing user accounts"?
Is the original coder helping?
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 09:05 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.07553 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete