Last updated May 4, 2009. Created by budda on May 4, 2009.
Log in to edit this page.
Requirements
PHP 5.2 or higher versions.
Drupal 6.x.
Facebook Installation
You will need a Facebook API key pair to link your Drupal site to Facebook (FB).
NOTE: If you do not already have a Facebook account, you will first need to create one.
Each website you wish to provide FBConnect for needs its own corresponding FB application setting up.
Visit http://www.facebook.com/developers/
Select 'Set up New Application' button from the top right.
The first step is to assign a meaningful name to your new FB application and agree to the terms of service.
If the name is accepted you will then move on to the 'Basic' settings for your application.
The 'Basic' form will provide you with a unique Application ID, and an API key plus Secret key. The keys look something like '4828b5c45b0bac64b5378b0500b3ab7e'
Complete the rest of the 'Basic' form - adding a description and logo image as required. These will be shown to the user when they click the FBConnect button on your Drupal site.
Click on the "Authentication" tab down the left of the form and set the following values:
Post-Authorise Callback URL: Paste in the following URL http://example.com/sites/all/modules/fbconnect/xd_receiver.html then replace example.com with the address for your Drupal site.
Now select the 'Connect' tab down the left and complete the form as follows:
Connect URL: the full web address to your Drupal site homepage. Such as http://example.com
Connect Logo: Upload a suitably sized version of your Drupal sites logo.
Friend linking access: (if required by your site) Set to requested and explain what its for in the textbox below.
Click the Save Changes button at the bottom of the page and you're FB Application is complete.
Your "My Applications" dashboard will now list your new FB Application. Copy the 'API Key' value (the long line of numbers and letters) to your clipboard.
Drupal Installation
Copy the Drupal fbconnect module to /sites/all/modules/ with in your Drupal 6 installation.
Download the "Facebook PHP Library" from http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platf...
Copy the contents of the downloaded facebook-platform/php/ folder to the /sites/all/modules/fbconnect/facebook-client/ folder.
Visit the modules settings page at /admin/settings/fbconnect and paste your new applications API key and Secret API key in to the corresponding form textfields.
Save Configuration and you site will now allow Facebook users to log in to your Drupal site.
Comments
logout, then connect and link accounts, after installing
Thanks for the module, and the clear instructions.
I just had error message, re Facebook being unable to autoconnect. (Seems the install is working ok, but it's the website admin account that has an issue; can't link with your Facebook account.)
Found solution in issues; may help someone. Logout of your website. Then, use Facebook Connect - and follow steps to link the Facebook account with your own account on the website. Once this is done, should be ok. No need to have same email address for user account and Facebook account.
____________________________
DocMartin and Hong Kong Outdoors
Post-Auth. callback URL
I suspect the Post-authorization callback URL should be http://example.com/sites/all/modules/fbconnect/xd_receiver.inc.
actualy it should be
actually it should be http://example.com/fbconnect/receiver
Facebook PHP Library URL change
the link in the tutorial is dead - use this instead: http://github.com/facebook/php-sdk/
Not implemented methods
The fbconnect module does not work with the recommended php client from http://github.com/facebook/php-sdk/ . Use the php client form http://github.com/facebook/platform/raw/master/clients/packages/facebook...
George Baev
Drupal Developer
Visit my site: http://drupalin.eu
My Skype Id: geo_baev
My LinkedIn profile: http://bg.linkedin.com/in/georgebaev
I had the same error, try
I had the same error, try v2.1.1, after uploading it I no longer got the error in Status Report nor a Fatal Error:
https://github.com/facebook/php-sdk/tree/v2.1.1
∞ DEAN FLORY
Cary, North Carolina, USA
Learning something every day...
Facebook PHP Library - unable to acess.
The installation procedure says...
Download the "Facebook PHP Library" from http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platf...
Which is never accessible. Please advise.
See this issue: #792138:
See this issue: #792138: Facebook has removed facebook-platform.tar.gz from its servers.
Difficulty Installing
I followed the instructions posted here to the letter, except for using one of the alternate links for the php files. The thing is, I can't seem to get this sucker working. I've input my Application ID as well as my Secret Key; however, when attempting to access the App Settings (/admin/settings/fbconnect/fb-app) tab, I see a warning/error message stating "Ensure that you entered valid api keys."
Is there an extra step or alternative method for trying to use this on a local (dev) installation, or will this only work on a publicly-accessible site?
Could this be due to the fact that I was not able to find and therefore not populate the values for the Post-Authorise Callback URL? I didn't see it anywhere in the app settings page on the application (Facebook) site.
Also, does one have to submit the app to the application directory in order for this to work?
Solution?
Did you get the fb connect module working? I have the same problem with the "Ensure that you entered valid api keys." error.