The simple concept behind WP-FB AutoConnect is to offer an easy-to-use, no-thrills widget that lets readers login to your blog with either their Facebook account or local blog credentials. Although many "Facebook Connect" plugins do exist, most of them are either overly complex and difficult to customize, or fail to provide a seamless experience for new visitors. I wrote this plugin to provide what the others didn't:
- No user interaction is required - the login process is transparent to new and returning users alike.
- Existing WP users who connect with FB retain the same local user accounts as before.
- New visitors will be given new WP user accounts, which can be retained even if you remove the plugin.
- Custom logging options can notify you whenever someone connects with Facebook.
- Custom actions allow you to modify connecting users according to their Facebook accounts.
- No contact with Facebook servers after the login completes - so no slow pageloads.
- Simple, well-documented source makes it easy to extend and customize.
- Won't bloat your database with duplicate user accounts, extra fields, or unnecessary complications.
- Built-in BuddyPress support.
This plugin is a great starting point for coders looking to add customized Facebook integration to their blogs. For complete information, see the
plugin's homepage.
To allow your users to login with their Facebook accounts, you must first setup an Application for your site:
- Visit www.facebook.com/developers/createapp.php
- Type in a name (i.e. the name of your blog). This is what Facebook will show on the login popup.
- Note the API Key and Secret; you'll need them in a minute.
- Click the "Connect" tab and enter your site's URL under "Connect URL." Note: http://example.com/ and http://www.example.com/ are not the same - be sure this matches Settings -> General -> Wordpress Address.
- Click the "Advanced" tab and enter your site's domain under "Email Domain" (i.e. example.com). This is only required if you want to be able to access your users' email addresses (optional).
- Click "Save Changes."
Then you can install the plugin:
- Download the latest version from here, unzip it, and upload the extracted files to your plugins directory.
- Login to your Wordpress admin panel and activate the plugin.
- Navigate to Settings -> WP-FB AutoConn.
- Enter your Application's API Key and Secret (obtained above), and click "Save."
- If you're using BuddyPress, a Facebook button will automatically be added to its built-in login panel. If not, navigate to Appearance -> Widgets and add the WP-FB AutoConnect widget to your sidebar.
That's it - users should now be able to use the widget to login to your blog with their Facebook accounts.
For more information on exactly how this plugin's login process works and how it can be customized, see the
homepage.