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)

sllik 12-09-2008 10:00 PM

Facebook Connect - Allow your users to login with their Facebook account
 
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 https://vborg.vbsupport.ru/ 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.

TNCclubman 12-10-2008 04:07 AM

sweet!

Rene Kriest 12-10-2008 04:31 AM

Wow, this is awesome! Thanks.

6piston 12-10-2008 04:36 AM

awesome. i'm trying it out now!

sllik 12-10-2008 04:40 AM

Quote:

Originally Posted by 6piston (Post 1682108)
awesome. i'm trying it out now!

please make sure to let me know if you have any problems.
thanks!

yinyang 12-10-2008 04:59 AM

OMG, I just saved some $$$. I'd like to donate to help you make this even better.

6piston 12-10-2008 05:06 AM

Quote:

Originally Posted by sllik (Post 1682109)
please make sure to let me know if you have any problems.
thanks!

Thanks!

Can you help? i'm still trying to figure out these:
  1. Facebook callback url settings?
  2. First Login Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed after the user has logged in with Facebook Connect for the first time. Click here to manage news-feed template bundles.
  3. New Reply Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed when the user replied to a thread. Click here to manage news-feed template bundles.
  4. New Thread Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed when the user create a thread. Click here to manage news-feed template bundles.

sllik 12-10-2008 05:17 AM

Quote:

Originally Posted by 6piston (Post 1682119)
Thanks!

Can you help? i'm still trying to figure out these:
  1. Facebook callback url settings?
  2. First Login Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed after the user has logged in with Facebook Connect for the first time. Click here to manage news-feed template bundles.
  3. New Reply Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed when the user replied to a thread. Click here to manage news-feed template bundles.
  4. New Thread Feed Template ID
    The ID of the news-feed template bundle that will be posted to the user's news-feed when the user create a thread. Click here to manage news-feed template bundles.

1. Have you set up your facebook application? If so in the facebook application settings there is a setting called Callback URL. Set it to your forum's url. And thats it!

2. The Feed Template IDs will be automatically set once you go to FB Connect Options > News-Feed Templates and click on [ Register Default Templates ]

Hope this helps

sllik 12-10-2008 05:20 AM

Quote:

Originally Posted by yinyang (Post 1682115)
OMG, I just saved some $$$. I'd like to donate to help you make this even better.

Wow that's very generous of you! I sent you a PM.

yinyang 12-10-2008 05:38 AM

I don't see a "Register Default Templates"... I see a "manage", but I get this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxxx/public_html/xxxxxx/includes/facebook/facebook.php on line 38

sllik 12-10-2008 05:51 AM

Quote:

Originally Posted by yinyang (Post 1682129)
I don't see a "Register Default Templates"... I see a "manage", but I get this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxxx/public_html/xxxxxx/includes/facebook/facebook.php on line 38

Are you using PHP4 or PHP5

yinyang 12-10-2008 05:54 AM

Quote:

Originally Posted by sllik (Post 1682138)
Are you using PHP4 or PHP5

4.4.9

sllik 12-10-2008 05:59 AM

Quote:

Originally Posted by yinyang (Post 1682140)
4.4.9

Sorry, this add-on only supports PHP5 for now...

yinyang 12-10-2008 06:00 AM

Quote:

Originally Posted by sllik (Post 1682141)
Sorry, this add-on only supports PHP5.

Nooooooooooooo .......

sllik 12-10-2008 06:05 AM

Quote:

Originally Posted by yinyang (Post 1682142)
Nooooooooooooo .......

Sorry, the Facebook Connect library doesn't support PHP4

dirtycrow 12-10-2008 06:09 AM

this is awesome, but one thing. i run a "membership only" vbulletin site and members need to be approved before they are allowed access to the forums. will this compromise that approval system?

6piston 12-10-2008 06:16 AM

Quote:

Originally Posted by sllik (Post 1682123)
1. Have you set up your facebook application? If so in the facebook application settings there is a setting called Callback URL. Set it to your forum's url. And thats it!

2. The Feed Template IDs will be automatically set once you go to FB Connect Options > News-Feed Templates and click on [ Register Default Templates ]

Hope this helps

Done! this is just easy to install.

i don't see any problems yet so far. great work!

sllik 12-10-2008 06:18 AM

Quote:

Originally Posted by dirtycrow (Post 1682146)
this is awesome, but one thing. i run a "membership only" vbulletin site and members need to be approved before they are allowed access to the forums. will this compromise that approval system?

Actually it's very easy! You can set a default user group for facebook users in the add-on settings. So what I would suggest you do, is create a user group with restricted access and set it as the default user group for facebook users. After you approve the user, you can move him/her to the group with all the other approved users.

Would this solution work for ya?

yinyang 12-10-2008 06:40 AM

weird problem.

I've logged out of facebook and logged out of the forum. I log in to my forum using the facebook connect. it goes to redirection page and instead of the name of the user, it just says:

Thank you for logging in, .
Click here if your browser does not automatically redirect you.

Then it keeps trying to reload the fblogin.php page ...

sllik 12-10-2008 06:54 AM

Quote:

Originally Posted by yinyang (Post 1682160)
weird problem.

I've logged out of facebook and logged out of the forum. I log in to my forum using the facebook connect. it goes to redirection page and instead of the name of the user, it just says:

Thank you for logging in, .
Click here if your browser does not automatically redirect you.

Then it keeps trying to reload the fblogin.php page ...

I just logged in with facebook connect, after i selected my nickname it said that I will be moderated and when i was redirected to the main page it says:

You have been banned for the following reason:
No reason was specified.

Date the ban will be lifted: Never

I'm guessing you moderate new users.... right?
Did you change the default user group for facebook users to 8 (banned)?

yinyang 12-10-2008 06:55 AM

Quote:

Originally Posted by sllik (Post 1682163)
I just logged in with facebook connect, after i selected my nickname it said that I will be moderated and when i was redirected to the main page it says:

You have been banned for the following reason:
No reason was specified.

Date the ban will be lifted: Never

I'm guessing you moderate new users.... right?
Did you change the default user group for facebook users to 8 (banned)?

\

Yes, I moderate new users, but the default group is set to 2. I'll create one called facebook and see if that works.

yinyang 12-10-2008 06:58 AM

Okay, created a new Facebook users. Can you retry?

I'll delete you from the old one. Also, I still get that loop and it won't get out of the fblogin.php page. any ideas?

6piston 12-10-2008 07:05 AM

hi Sllik

it's currently on my site (http://www.zerotohundred.com/newforums), running fine i guess.

I understand some functionality are pending.
So what are the functions that are available through Facebook Connect besides logging in with a facebook account?

Are these functions already working with the current installation of Facebook Connect?
Quote:

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
If yes, i've tried sending the facebook test user a PM but there wasn't a notification the facebook account about the new PM/reply?

Thanks!
Tom

sensimilla 12-10-2008 07:07 AM

Is the password to facebook account beeing revealed somehow ?

dailyyeah 12-10-2008 07:14 AM

Nice! I've been waiting for a mod like this to come out. Thanks!

Have you thought about creating a mod for myspace/open social integration as well? That would be amazing...

yinyang 12-10-2008 07:15 AM

Sllik --- okay, i reread your description and now it makes sense. This is for Guests to be able to login directly from their facebook accounts.

What about established users? Is there a way for established users of my forum to log in via facebook?

yinyang 12-10-2008 07:21 AM

BTW, check your paypal.

Do you think the easiest way to do a work-around would be to merge users?

Also, i'm still getting that weird looping at fblogin.php. what do you think is wrong?

sllik 12-10-2008 07:22 AM

Quote:

Originally Posted by yinyang (Post 1682181)
Sllik --- okay, i reread your description and now it makes sense. This is for Guests to be able to login directly from their facebook accounts.

What about established users? Is there a way for established users of my forum to log in via facebook?

no it's not supported at the moment. and as for your infinite redirect problem, I've updated the fblogin.php file so please download the archive and reupload the file.

sllik 12-10-2008 07:23 AM

Quote:

Originally Posted by 6piston (Post 1682170)
hi Sllik

it's currently on my site (http://www.zerotohundred.com/newforums), running fine i guess.

I understand some functionality are pending.
So what are the functions that are available through Facebook Connect besides logging in with a facebook account?

Are these functions already working with the current installation of Facebook Connect?


If yes, i've tried sending the facebook test user a PM but there wasn't a notification the facebook account about the new PM/reply?

Thanks!
Tom

It should be working, but I'll double check everything keep your eye out for updates

sllik 12-10-2008 07:24 AM

Quote:

Originally Posted by sensimilla (Post 1682171)
Is the password to facebook account beeing revealed somehow ?

No one knows your facebook password (except facebook).

sllik 12-10-2008 07:26 AM

Quote:

Originally Posted by dailyyeah (Post 1682177)
Nice! I've been waiting for a mod like this to come out. Thanks!

Have you thought about creating a mod for myspace/open social integration as well? That would be amazing...

maybe at one point... don't forget to check for updates ;)

AlexanderT 12-10-2008 07:31 AM

Very interesting!

How does the postbit of someone who posted with a facebook login look like? Username? Avatar?

sllik 12-10-2008 07:34 AM

Quote:

Originally Posted by AlexanderT (Post 1682196)
Very interesting!

How does the postbit of someone who posted with a facebook look like? Username? Avatar?

The user is asked to select a Nickname (username) when he/she logs in for the first time so it looks like any other postbit. Right now there is no way for others to distinguish between facebook users and non-facebook users.

yinyang 12-10-2008 07:40 AM

Quote:

Originally Posted by sllik (Post 1682185)
no it's not supported at the moment. and as for your infinite redirect problem, I've updated the fblogin.php file so please download the archive and reupload the file.

I will happily add to the paypal donation if you can figure out how to tie in established forum users with their facebook accounts.

the new fblogin.php file works beautifully.

macc 12-10-2008 07:41 AM

nice - will test on my site ...

regards

macc

pipedreams 12-10-2008 09:02 AM

Amazing add-on indeed - much thanks!

Quote:

Originally Posted by dailyyeah (Post 1682177)
Have you thought about creating a mod for myspace/open social integration as well? That would be amazing...

I agree and maybe use Google Friend Connect as that supports yahoo as well as openid - which I believe will support myspace as well?

Eneswar 12-10-2008 09:14 AM

I tried this on my test server but i get this error when i click connect with facebook:

Code:

Invalid Argument

The Facebook Connect cross-domain receiver URL (http://camci.ozafy.org//xd_receiver.htm#fname=_opener&%7B%22t%22%3A3%2C%22h%22%3A%22fbCancelLogin%22%2C%22sid%22%3A%220.969%22%7D) must have the application's callback url (http://camci.ozafy.org/index.php) as a prefix. You can configure the callback url in the application's settings.


Wakey 12-10-2008 10:32 AM

Ok what am I doing wrong. I uploaded all the files, made the template changes and set it up in admin panel. However when I click the button to login with facebook it does nothing.

I even switched to the default theme and set that up and it still won't work

AlexanderT 12-10-2008 10:44 AM

Quote:

Originally Posted by sllik (Post 1682199)
The user is asked to select a Nickname (username) when he/she logs in for the first time so it looks like any other postbit. Right now there is no way for others to distinguish between facebook users and non-facebook users.

Ahh ok. So that nickname is then permanently tied to the person's facebook id?

jlew24asu 12-10-2008 11:03 AM

can you help me with step 1? :)

Step 1:

Set up a new Facebook Application through which vBulletin and Facebook will be communicating. When setting up the application set the Callback URL to your vBulletin url. Set up a new Facebook Application here: http://www.facebook.com/developers/ (no coding skills required)

when trying to submit, I get

"You need to have at least 5 users before you can submit your application."


All times are GMT. The time now is 05:14 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.02357 seconds
  • Memory Usage 1,847KB
  • 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
  • (2)bbcode_code_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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