http://www.phpbb.com/community/viewtopi ... &t=1692295
* Report this post
* Reply with quote
[BETA] Facebook Connect 0.3.1
Postby DeViAnThans3 » Mon Jul 13, 2009 11:57 pm




Modification Name: Facebook Connect
Author: DeViAnThans3
Modification Description:: Allows people to log in to your forum using their Facebook account!
Modification Version:: 0.3.1 (beta)
Requirements: PHP 5 with safe mode off (!) and a Facebook account with which you can get a API key (more info inside download)
Features:
* Allow people to log in to your board using their Facebook account
o The MOD automatically creates an account for them. Upon first log in, they are asked to enter an username. Language of the user can automatically be detected!
o Admin can decide to also ask a password upon first login.
o Alternatively, people can link their Facebook account to an existing user account rather than creating a new one.
* Import data on the fly (note: by default disabled)
o Location
o Avatar
o Interests
o Signature
o Birthday / age
o Facebook account link as website
o **Planned** Allow people to determine not to import data
o **Possibly planned** Data mapping / custom profile fields
* Send Facebook notifications if e-mail notifications are unavailable.
o ]New reply
o New topic / forum subscription
o New PM
o Many more ... highly customizable! New notifications could be added by simply adding a TXT file in the appropriate language folder.
o **Planned** Allow users to choose between Facebook notifications and e-mail notifications - or both
* Allow users to invite their friends to your board. (To be found in the User Control Panel)
* Allow users to unlink their accounts if they ever feel the need to do so.
* **Planned** Publish to user wall (obviously with their approval)
* **Possibly planned** Allow users to show off their forum statistics on their Facebook profile
Demo URL: Demo board
Modification Download: Download 0.3.1
Note: it is NOT recommended to use this on a live board yet!! This beta MOD is mainly downloadable for testing purposes!
Included Compatible Translations: (inside the download in the contrib folder)
Only languages compatible with the most recent version are included inside the download.
* Italian (v 0.3.1) by Plasmino
* Croatian (v 0.3.1) by Encore204
* French (v 0.3.1) by Olilesp
* Turkish (v 0.3.1) by RoyaLChiLD
* Dutch (v 0.3.1) by DeViAnThans3
Outdated Translations: (these translations are currently not up-to-date with the newest version, and are not included with the download package. They are still separately downloadable though, just click the name of the language.)
* Polish (v 0.2.5.1) by Pablov
Tested with AutoMOD. Do not forget to read the DIY instructions, in order to get the MOD working!
Please report everything that might go wrong during or after installation! I'll do my best to identify and solve the problem. Thank you!
Last edited by DeViAnThans3 on Sun Sep 06, 2009 11:04 pm, edited 17 times in total.
I only provide support via the appropriate topics! Please no PM or mails!

User avatar
DeViAnThans3
Registered User
Posts: 668
Joined: Sun Oct 09, 2005 12:39 am
Location: Belgium
* E-mail DeViAnThans3
* MSNM/WLM
Top
* Report this post
* Reply with quote
Re: [ALPHA] Facebook Connect
Postby DeViAnThans3 » Mon Jul 13, 2009 11:58 pm
FAQ.
Q: Facebook Connect?
A: Facebook Connect is an API which was made available by Facebook to the public, so it would be possible to log in on other sites using your Facebook account. This API will be integrated into phpBB using this mod. The log in is done directly at facebook.com, so basically a total privacy is ensured by facebook. There are already many sites who use Facebook Connect.
Q: Does the data of an user who came to my site via Facebook stay up-to-date?
A: No. The data is only grabbed once from Facebook, and this is at the first time login. This is done for performance reasons: data grabbing from Facebook takes a while, and if the data would be synchronized all the way, your forum would perform a lot slower than you are used to. There might however come a feature which synchronizes the data from time to time upon user login. However, this idea is not yet worked out.

Q: Avatars aren't imported at my site, what did I do wrong?
A: There are numerous possible reasons why Facebook avatars aren't imported at your site. Some of them may get fixed by changing some phpBB or MOD settings, others will require tweaks on the server's php.ini file, or even cannot be fixed without a server hardware upgrade. Let me list some of the possible reasons:
* Remote avatars are disabled in the Avatar Settings. The MOD will automatically skip avatar imports if this option is disabled.
* The imported avatars exceed the avatar dimension (size) limit set in the Avatar Settings. This could be fixed by increasing the height and width limits in the Avatar Settings, OR enabling the "Force Avatar import" option in the Facebook Connect Settings. If avatar import is forced, the avatar size limits are ignored.
* Your server or the Facebook server could not process the avatar request quick enough, which makes the MOD won't import an avatar, in order to avoid a script timeout. This problem can not be fixed or avoided by just changing some settings.
* Your server's PHP setting allow_url_fopen is set to Off (or Safe Mode restriction is in strong effect). This causes that the script can not verify the image size of the avatar (and the existence of this avatar), and as such it assumes there is no avatar. You must ensure that allow_url_fopen is set to On, in order to fix this; this may require a support request at your hosting provider or system administrator.