Overview
What Is WP-FB AutoConnect?
The simple concept behind WP-FB AutoConnect is to offer an easy-to-use widget that lets readers login to your blog with either their Facebook account or local Wordpress 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:
- Full support for Wordpress, Buddypress, Mingle (free addon), and MultiSite (paid addon).
- No user interaction is required - the login process is transparent to new and returning users alike.
- Existing users who connect with FB retain the same local user accounts as before.
- New visitors will be given new user accounts, which can be retained even if you remove the plugin.
- Facebook profile pictures can be used as avatars, even on pre-existing comments.
- User registration announcements can be pushed to Facebook walls.
- No contact with the Facebook API after the login completes - so no slow pageloads.
- Won't bloat your database with duplicate user accounts, extra fields, or unnecessary complications.
- Custom logging options can notify you whenever someone connects with Facebook.
- A powerful set of hooks and filters allow developers to easily tailor the login process to their personal needs: redirect to a custom page, fill xProfile data with information from Facebook, setup permissions based on social connections, and more.
- Fully HTML/CSS valid.
WP-FB AutoConnect Premium
To address the needs of more advanced users, I've created an additional Premium add-on which extends the functionality of the free WP-FB AutoConnect plugin. This add-on currently provides the following:
Premium Features:
- MultiSite Support (Mouseover for more information)
- Cache Facebook avatars (Mouseover for more information)
- Require access to user's real email (Mouseover for more information)
- Auto-fill BuddyPress X-Profile fields with information from Facebook
- Announce Facebook logins on the BuddyPress Activity Stream (new!)
- Show an AJAX spinner to indicate load-in-progress after clicking the Login button
- Customize the login button's size and text (handy for localizing to another language)
- Add a Facebook button to the comment form, login form, WP registration form, and WPMU signup form
- Customize the Redirect URL for first-time visitors ("Welcome" page), returning visitors ("Welcome Back" page), and logged-out visitors ("Come back soon" page)
- Restrict autoregistration to Facebook friends, Facebook fans, Facebook group members, explicitly invited users (via Secure Invites), everyone, or no one
- Send a customizable welcome mail to autoregistered users (with their generated login and password)
- Silently handle "double-logins" (Mouseover for more information)
- Show links to connected users' Facebook profiles in the "Users" admin page
- Customize all visible text (Mouseover for more information)
- Show a 'Remember Me' tickbox
- Show the user's avatar (when logged in)
- Hide the WP login fields (leaving Facebook as the only way to login)
- Simultaneously logout of Facebook and the local blog
Important: Before making a purchase, please be sure to install and test the free plugin to confirm that it works for you; if the free version works, so will the premium:
Buy WP-FB-AutoConnect Premium (Single-Site License) - $29.99
Buy WP-FB-AutoConnect Premium (Developer License) - $69.99
Upon completing payment, you can grab the file by visiting Account -> Downloads. To install it, first setup the free version of WP-FB AutoConnect and then simply drop the purchased "WP-FB-AutoConnect-Premium.php" script into your plugins directory. This will automatically enable the premium features in your admin panel, and you may continue to update the core plugin as usual.
Screenshots
Here are some screenshots of the plugin; click each one for a larger view and description:Instructions
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.
- Click the "Web Site" tab and fill in your "Site URL" (with a trailing slash). Note: http://example.com/ and http://www.example.com/ are not the same.
- Click "Save Changes," and note the API Key and Application Secret (you'll need them in a minute).
- 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.
Customizing
How it Works
Before getting into any advanced customization, you should have a general understanding of how the login process works. When a user clicks the login button, a Facebook form pops up, they fill in their info, it closes, and a javascript callback function redirects them to _process_login.php. This is the heart of the plugin. Here's what it does:- Access the User's Facebook account and get their uid (userID)
- Search for existing WP users tagged with this visitor's Facebook uid; whenever someone successfully connects, the plugin tags them with usermeta so it can quickly match them to their WP user account on subsequent logins. If found, this is the existing WP user we'll login.
- If nobody is found via usermeta, we search all existing users for someone with the same email address as the connecting FB member (assuming you've opted to ask them for their email). If found, this is the existing WP user we'll login.
- If nobody is found via meta or email, we assume the connecting user is a first-time visitor. We auto-create an account for them and log them in.
- Redirect the user to their previous page.
Hooks & Filters
During the login process, a number of hooks and filters provide an easy way for programmers to customize the script's behavior as needed:- Hook wpfb_prelogin runs at the very start of the login script, allowing you to perform custom actions before connecting to Facebook.
- Hook wpfb_connect runs after connecting to Facebook but before searching for a local Wordpress user, letting you access profile information but still abort the process if desired.
- Filter wpfb_insert_user is applied to userdata just before autoregistering an account, allowing you to customize new users without affecting existing ones.
- Hook wpfb_existing_user runs before logging in an existing (i.e. not autoregistered) user.
- Hook wpfb_login runs just before the login process finishes, receiving the user's Wordpress uid, their Facebook uid, and a Facebook API instance with active client session. This allows you to access and utilize social information about your visitors; see the examples below for more detailed instructions.
- Hook wpfb_add_to_form allows you to insert html into the <form> responsible for sending the user to _process_login.php. This is handy if you want to forward additional data for use during the login process.
- Hook wpfb_add_to_js lets you insert additional javascript to be executed before submitting the <form> that sends the user to _process_login.php.
- Hook wpfb_add_to_asyncinit lets you insert additional javascript after the Facebook API initializes.
- Filter wpfb_extended_permissions lets you modify the extended permissions that Facebook will prompt for. The complete list of available permissions is documented here.
- Hook wpfb_after_button lets you output custom html immediately after the Login with Facebook button.
Examples
The hook wpfb_login receives an array of 3 arguments, formatted like this:- $args['WP_ID']: The local Wordpress userID
- $args['FB_ID']: The Facebook userID
- $args['facebook']: The Facebook API instance, with active client session
add_action('wpfb_login', 'add_to_friends');
function add_to_friends($arg)
{
$myUID = '123456';
$newUID= $arg['FB_ID'];
$rsGrp = 15;
$fbArg = array('method'=>'friends.areFriends','uids1'=>$myUID,'uids2'=>$newUID);
$result = $arg['facebook']->api( $fbArg );
if( $result[0]['are_friends'] )
ScoperAdminLib::add_group_user($rsGrp, $arg['WP_ID']);
}
For information on the types of things you can pull from Facebook, refer to the API documentation here.The following is a slightly more advanced example of how you might use wpfb_add_to_js and wpfb_add_to_form to forward some custom data for use during the login process:
//Add a POST variable to be sent through to _process_login.php
add_action('wpfb_add_to_form', 'nb_connect_add_to_form');
function nb_connect_add_to_form(){
echo '<input type="hidden" name="cstm" id="cstm" value="unset" />';
}
//Before the form is submitted, use JS to set the field dynamically from a textbox
add_action('wpfb_add_to_js', 'nb_connect_add_to_js');
function nb_connect_add_to_js(){
echo "document.getElementById('cstm').value = document.getElementById('t').value";
}
//When the user connects, insert the data into their BP xprofile.
add_action('wpfb_inserted_user', 'nb_connect_add_profiledata');
function nb_connect_add_profiledata($args)
{
global $_POST;
if( !function_exists('xprofile_set_field_data') ) return;
xprofile_set_field_data('my_profile_field', $args['WP_ID'], $_POST['cstm']);
}
Custom Login Buttons
If you'd like to manually add a Facebook button elsewhere on your site, you may do so by calling the function:jfb_output_facebook_btn();Note however that this relies on two other functions which are normally auto-invoked by wp_footer, jfb_output_facebook_callback() and jfb_output_facebook_init(). If you end up with a nonfunctional button, most likely you're on a page that doesn't call wp_footer so you'll need to explicitly call one or both of these yourself.
AutoPrompting
Normally, users will initiate a login by manually clicking the "Login with Facebook" button. But what if you want to prompt them automatically, as soon as they visit a page? What if you have some private content that only friends should be able to access? Rather than manually creating user accounts and instructing them to login before viewing the content, we can use WP-FB-AutoConnect to handle it all automatically. I've included a sample script, _autologin.php, which will let you provide a link like this:http://www.example.com/autologin/192When a user visits the link, if they already have access to post 192 it'll send them straight there, and if not, it'll auto-popup a Facebook Connect window, log them in, give them access, then redirect them. No manual intervention is required by either you or the user - all they need is the link.
Note that this is a fairly advanced usage that requires a good bit of PHP knowledge; it's provided just as an example of how you can further utilize the plugin. Please refer to _autologin.php for exactly how it works.
FAQ
Note: Numbers may not be sequential as I remove old or outdated FAQs.2. The Login button isn't rendering correctly in IE.
Make sure your theme calls language_attributes() in its opening html tag.
3. The widget's layout doesn't look anything like yours.
This is a CSS issue - you'll need to style it appropriately in your theme's stylesheet. For reference, here are the rules I'm using - you can try this out, and alter it as needed:
#wp-submit{ height:23px; width:46px; padding:0; margin:0 0 0 7px; }
#user_pass{ height:18px; width:86px; padding: 3px; }
#user_login{ height:18px; width:86px; padding: 3px; }
#loginform label{ display:inline-block; width:2.75em; }
#rememberme{ border:0; padding:0; margin: 0 2px; background:none; }
#forgotText{ display:inline-block; margin-left:9px; height:26px; font-size:80%;}
.fbLoginButton{ display:block; height:18px; margin-top:7px; text-align:center; }
.wpfb-widget-avatar {float: left;}
.wpfb-widget-avatar img.avatar {float:none; margin:0; }
8. What if my theme doesn't support Widgets?The right answer: update your theme. It's *very* easy to support them, and they've been around for ages.
The wrong answer: <?php the_widget("Widget_LoginLogout", array('title' => 'Login')); ?>
9. I'm getting a 404 server error while trying to execute _process_login.php.
Your FTP client is probably set to upload files with the wrong permissions - try changing _process_login.php and the parent directory to 755. You should be able to access _process_login.php directly and have it say "Please do not access this script directly." If not, that means your server isn't executing the php at all (and it's a problem with your server configuration rather than the plugin).
10. I'm getting a 500 internal server error while trying to execute _process_login.php
In order to find the cause of this issue, you'll need to view your raw server error logs (contact your webhost if you don't know how). 9 out of 10 times it's because some necessary module (like cURL) is missing or disabled.
11. I can't login - the popup always says "Invalid Argument," and something about a cross-domain receiver.
The Site URL you enter must match the base URL of your site. A common mistake is to have a website like http://example.com, but enter http://www.example.com. Also make sure you've entered it correctly in Wordpress under Settings -> General.
14. When I click the "Login with Facebook" button, nothing happens - no popup dialog.
Most likely your page has other javascript errors that are causing it to stop executing before it reaches the login button. Load it up with Firebug and see. For information on how to use Firebug, please visit Firebug.com.
17. Whenever I try to login, I get stuck with "You must be logged in to Facebook to use this feature."
You've probably disabled third-party cookies in your browser. Facebook Connect requires cookies.
19. I'm getting the error "Could not access the Facebook API client (failed on users_getInfo())"
This script requires that your server either have cURL installed or FOPEN enabled. If neither are available, it won't be able to contact Facebook. If you do have cURL but are getting "CurlException: 6: name lookup timed out", you can workaround it by modifying the Facebook library as documented here. If you're getting "CurlException: 60: SSL certificate problem," you can workaround it as documented here.
20. Whenever I try to connect, I get the error "Failed nonce check. Login aborted."
The "nonce" is a security feature builtin to Wordpress (see here), and not something I personally implemented. It's possible that something funky is going on with your cookies, or that a caching plugin is breaking this functionality. However, as I've never experienced the problem myself, and as nonces aren't specific to this plugin, I'm afraid I really can't tell you what your problem might be. If you simply can't figure it out and are desperate to get the plugin running, I've added a debug option to "DISABLE the nonce security check" - but note that I don't recommend using this as it will result in weakened security by skipping the nonce check entirely.
22. Can users who connected with this plugin also login manually (not via Facebook)?
Yes, an autoregistered user is the same as any other WP user. However, they'll need to login with Facebook once so they can edit their profile and set their own password. Alternatively, you can purchase the premium addon which can send a custom welcome message (along with login credentials) to autoregistered users.
23. I don't like the username/role/something about the autoregistered user accounts. Can you change it?
You're free to modify the userdata to whatever you'd like via the filters documented above.
24. "Login with Facebook" only appears as text, not a clickable button.
Either your theme isn't calling wp_footer or you've got other Javascript errors on your page (See FAQ14). Also, if you're using a Facebook Social Plugin, try the iFrame version (rather than HTML5 or XFBML).
27. Why can't users who've connected with Facebook change their avatars anymore?
The option to use Facebook avatars cannot be overridden on a per-user basis. In other words, if enabled, all users who've connected with Facebook will see their profile picture rather than their Wordpress avatar.
28. How can I request another feature for this plugin?
If you have an idea for a general feature you'd like to see added, you may leave a comment below. Please note however that new features are only being implemented in the Premium add-on at this time. They will be approached in order of popularity, urgency, and ease.
30. Can I receive update notifications for the Premium addon? How do I perform the updates?
Whenever a new version is available, I'll announce it in the comment thread below and on the Facebook fanpage (admin panel notifications are in the works). Users will then have their remaining download counts refilled, and may grab the latest version from store.justin-klein.com (just like after the original purchase).
31. I've downloaded and installed the Premium addon, but I still can't access its features.
WP-FB-AutoConnect-Premium.php goes in your plugins directory (i.e. wp-content/plugins/WP-FB-AutoConnect-Premium.php), not the WP-FB-AutoConnect directory (i.e. wp-content/plugins/wp-fb-autoconnect/WP-FB-AutoConnect-Premium.php). This is to prevent it from getting overwritten when you auto-update the core plugin.
32. I've paid for the Premium addon, but the download link isn't available.
For the store to instantly confirm your purchase, you must use an instant payment method on Paypal. eChecks take 3-5 days to clear, so until that time the store will not auto-enable the download. If you did use an instant payment, it's possible that some "special characters" in your name or address have tripped up its notification system - if this is the case (extremely rare), I'll manually approve the order the next time I check my email.
35. It doesn't seem to work in so-and-so browser.
Please reconfirm any browser-specific issues on another computer before reporting them below; 99% of the time they're caused by something on your local system. Make sure you tell me you've done this before reporting a browser bug, or I'll just redirect you to this FAQ. Note that the plugin has been tested and confirmed working on all major browsers (including iOS and Android).
36. How can I modify the plugin to work a bit differently / How can I implement some not-included feature?
As this plugin is open-source, you're welcome to tinker and modify it as you like. However, I do not provide free support on customizations beyond what's included with the plugin. If you need customizations that you can't implement on your own, I suggest hiring myself or another experienced Wordpress developer to do so for you (or, see FAQ28). Note: asking me to tell you exactly what to add/modify is the same as asking me to do it myself.
37. Whenever someone tries to login, it says "Error: Failed to get the Facebook user session..."
Thus far, every report of this bug has been due to conflicting plugins or themes (see FAQ100, 1st subitem). Some particularly common conflicts:
- Facebook plugins. Make sure any other Facebook plugins have been updated to OAuth2, and that they're configured to use the same AppID as this one. You cannot load more than one AppID on a given page.
- CDN plugins. Make sure to add an exception so this plugin's directory does not get copied to a CDN.
- Caching plugins. Some include CDN functionality (see above), or cause issues with cookies.
- Themes that have one or more of these features built-in.
The option to show an avatar is available via the Premium widget only. If you're already a Premium customer but aren't seeing an avatar, head over to Appearance->Widgets in your admin panel and make sure you're using "WP-FB-AutoConnect Premium" (not "WP-FB-AutoConnect Basic"), and that the "Show Avatar" option is enabled.
39. Logins seem to be incredibly slow, or I'm getting an error about the server's memory being exhausted.
This has been fixed as of v2.3.0. Please update your plugin.
40. Imported Facebook avatars are too big / too small / too unpredictably-sized / not showing at all.
Facebook thumbnails are always 50x50, so if you're seeing something different (or nothing), your theme is probably calling the avatar function wrong. Try it out on the default theme. If you're intentionally showing the fullsize profile image but want to enforce consistent dimensions, you can do that with CSS.
100. Something else isn't working. What should I do?
- Try disabling *ALL* your other plugins and using the default theme; conflicting plugins and broken themes are by far the most common cause of problems. If that works, you should be able to pinpoint the source of the issue by reactivating them one at a time.
- Try deleting your Facebook application, recreating it from scratch, and re-configuring the plugin. The few problems not solved by #1 are nearly always solved by this.
If you've done your best with everything above are still having a problem, you may post a question below - but make sure to include all of the information requested in the bold red note just above the comment form. If I've redirected you to this FAQ, it probably means that you ignored the note and omitted some or all of the info.
Feedback/Support
If you have any support requests, please use the comment form below and I'll do my best to get back to you.
Important: Make sure to include a clear and detailed explanation of the problem; "It's not working" isn't enough for me to help. Also, please include *ALL* of the following information. If you choose to ignore this when reporting a bug, you may not get a reply:
- Have you tried disabling all your other plugins and using the default theme (FAQ100)?
- Have you tried recreating your Facebook app and reconnecting it to the plugin (FAQ100)?
- Have you tried it in another browser (FAQ35)?
- Provide a link to the site that isn't working.
- Provide the information from the "Support Info" tab of the plugin's admin panel.



Hello, I am having issues with the facebook connect grabbing profile pictures. Its creating a blurry image when in full size.
Is there a possible way of calling the Profile picture image thumbnail that’s on the actual profile rather than the 50×50 thumbnail?
Please help me solve this issue…
You’ve ignored FAQ101 so I don’t know if you’re using WP or BP, but yes, the plugin records both the thumbnail and fullsized profile picture. See the AVATARS code section of Main.php. On BP you just need to pass the proper param to bp_core_fetch_avatar, on WP you’d either need to edit the source or write your own filter.
The free version worked fine, but know I have purchased the premium-addon.. after installing the file on in plugins-dir my whole backend is “white”
PS: Yes I´ve got a memorylimit of 64MB…
Please email your phpinfo to justin (at) justin-klein.com and I’ll see if there’s anything obvious that might be causing it.
(http://php.net/manual/en/function.phpinfo.php)
Justin, thinking of buying the premium version, but have a question first.
Do you know if this works with a WordPress Membership DAP plugin also? Basically, it’s a membership plugin and users are registered through your normal self-hosted WordPress site.
I’m thinking it should work as normal, correct?
No idea how that specific plugin works under the hood so I really couldn’t tell you, but an easy way to find out would be to try it with the free version first. The free & premium versions fundamentally work the same – premium just adds more features.
hey justin, i have installed your plugin on my site http://www.example.com and it works properly. i am trying to install the plugin on http://www.example.com/fbtest.php with no success. i want to buy the premium version but must first make sure it will work correctly on this page.
I get the message: “An error occurred. Please try again later.”
I see that the http referrer is /fbtest.php on my test page
but that the http referrer is / on my wordpress home page
what do i need to do to have this work so i can buy the premium version?
Please see FAQ101.
WordPress Version: 3.3.1
BuddyPress Version: 1.5.3.1
MultiSite Status: Not Allowed / Disabled
Browser Version: Opera 11.61 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: Already present!
Theme: Salutation
Server: Apache
cURL: OK
Active Plugins: 9 (BuddyPress 1.5.3.1; Custom Login 0.9.8; External Member Blogs 0.2.1; Facebook Comments for WordPress 3.1.3; Watermark RELOADED 1.2.4; WordPress Importer 0.5; WP-FB-AutoConnect 2.3.0; WP Hide Dashboard 2.1; YD BuddyPress Feed Syndication 2.1.0; )
hey justin, i have installed your plugin on my site http://www.example.com and it works properly. i am trying to install the plugin on http://www.example.com/fbtest.php with no success. i want to buy the premium version but must first make sure it will work correctly on this page.
I get the message: “An error occurred. Please try again later.”
I see that the http referrer is /fbtest.php on my test page
but that the http referrer is / on my wordpress home page
what do i need to do to have this work so i can buy the premium version?
You’ve still omitted the first four items of the red note. This is just the fifth.
Specifically, you haven’t answered #1 (which is also FAQ100 and listed at the top of the Support Info tab).
Already, however, I notice that you have a “badly behaved” Facebook plugin installed, as the admin panel is detecting that the Facebook API is already there, when no plugin should be including it globally across the entire WP backend. Is there not a warning about this at the top of the WP-FB-AutoConnect admin panel?
…Wait, http://www.901life.com/fbtest.php is not even a complete webpage! This is not how the plugin was designed to be used and I wouldn’t expect it to work like this.
if you could make alterations to the file so that i could use it as i am attempting i would greatly appreciate it. I can even make a donation to the plugin. please email me if that is possible.
thanks
See my reply to your other thread.
i apologize, i did disable all other plugins and use the default theme and it still did not work. I recreated the app and tried it in another browser. I was trying to get it to work on a page that i will make the intro page to the site. http://www.901life.com/fbtest.php
From this page people will only be able to enter if they are friends with me. I included the wp_footer into my test page which did not help.
The plugin works on other pages in the theme, and i assumed since the fbtest.php is in the wordpress root folder, it would work also. What would i need to do to make it work on a site outside theme?
When you reply, please do so to the comment thread in which we’re actually discussing this so it doesn’t start a new one each time
As mentioned, that URL is not even a complete webpage – it’s just a partial fragment of HTML. See http://validator.w3.org/check?uri=http%3A%2F%2Fwww.901life.com%2Ffbtest.php
In any case, while what you’re trying to do should be possible, it easily falls under FAQ36. Attempting to use WordPress plugins outside of WordPress is a very nonstandard situation (which, to my knowledge, no other users have tried with this particular plugin). So if you can’t figure it out yourself it would effectively mean me logging in and debugging your implementation for you. Free consulting work is unfortunately not something I throw in with this plugin (even the paid one); consulting work is always done on an hourly basis.
When clicking the Facebook connect from homepage the window appears then quickly disappears. Tried sandbox mode and got ‘Error try again later’.
Thanks for any help!
WordPress Version: 3.3.1
BuddyPress Version: 1.5.4
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 17.0.963.79 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: Already present!
Theme: 4x4Trek
Server: Apache/2.2.22 (Win32) mod_fcgid/2.3.6
cURL: OK
Active Plugins: 25 (Akismet 2.5.5; bbPress Post Toolbar 0.7.5; bbPress 2.0.2; BuddyPress Forums Extras – BBCode to HTML (no ShortCodes) 0.3.0; BuddyPress Group Forum Extras 0.3.0; BuddyPress Profile Privacy 1.4.2; BuddyPress 1.5.4; BuddyStream 2.5.07; BWP Google XML Sitemaps 1.2.0; CD BuddyPress Avatar Bubble 2.3; Erocks Dashboard Lockdown 1.0; Exclude Pages from Navigation 1.92; GD bbPress Attachments 1.6.0.1; Google-Maps-GPX-Viewer 1.23; Google+ Plugin 1.3.2; Members 0.2; SEO Ultimate 7.2.1; Trails-Viewer 1.0; Ultimate TinyMCE 1.7.4.1; W3 Total Cache 0.9.2.4; Welcome Pack 3.3; Widget Logic 0.51; WP-Cleanup 1.1.0; WP-FB-AutoConnect 2.3.0; WP-Mail-SMTP 0.9.1; )
Please include *ALL* of the items in the bold red note. Including the first one.
Yes, tried both just plugins with theme then just theme without plugins then all plugins (except for buddypress) and theme back to default. In chrome incognito I can get the window to open but upon entering facebook information, the window closes then nothing happens.
http://validator.w3.org/check?uri=http%3A%2F%2F4x4trek.com
Just to clarify, all browsers effected – reset the App secret code but I’m not sure if that’s what you mean in #2
I couldn’t find a “contact me” form to ask questions about the wordpress plugin, so I have to submit my question here before purchasing.
Does the premium add-on provide a way for site admin to “approve” a new user registration via facebook? For example, I want to allow people to sign-in and autocreate a WP user account, however, I want to be able to manually approve them. OR alternatively, if this is not possible is there a way for them to request an invite via the plugin?
Thanks,
M
There is not.
All of the currently included features are listed above (and can be previewed in the free plugin’s admin panel); the closest thing to what you’re looking for is conditional registration i.e. based on Facebook friendship or being a member of a fanpage, etc.
First of all – great plugin!
Secondly, we are still having issues with two things after trying many solutions:
-Any user who registers through the plugin only has their first name displayed on their profile, on forums, etc. Even when they change this in their profile, it does not update. We need a way to have full names be the default, not first names.
-If a user clicks on “Login with Facebook” while not actually logged into Facebook and/or does not already have an account with us, an error occurs:
Error: Could not access the Facebook API client (failed on users_getInfo(100002569130960)). Result: ; OAuthException: An active access token must be used to query information about the current user.
This is hard to replicate, and we have yet to figure out why this happens.
Thank you for your prompt help with this! Much appreciated.
Sam
FYI – the link that appears with that error:
/wp-content/plugins/wp-fb-autoconnect/_process_login.php
1) See FAQ23
2) See FAQ101
Thanks for your reply. While I reattempt some of the points in your note (to address problem #2,) I need some elaboration on your answer to problem #1. If you can let us know how to alter the name, that would be fantastic. Unfortunately, pointing us toward the filters, in this case, was not helpful.
Much appreciated again!
Sam
Please see FAQ36. You may reference the existing code (all commented) for how the username is generated and then modify it as needed for your own site in a custom filter.
-If a user clicks on “Login with Facebook” while not actually logged into Facebook and/or does not already have an account with us, an error occurs:
Yup, its right. If a user clicks Login with fb while is not intially logged in on facebook, the Login doesn’t occur. The user has to login @ facebook > Refresh page > Click login with facebook, then error doesn’t show up.
No, it’s not right. I routinely login to my own site with this plugin while not already logged into Facebook. The last time I did so was 30 seconds ago, when I logged in to write this comment.
Have you tried disabling all your other plugins and using the default theme (FAQ100)?
No
Have you tried recreating your Facebook app and reconnecting it to the plugin (FAQ100)?
No
Have you tried it in another browser (FAQ35)?
Yes, Chrome, safari, IE, Firefox
Provide a link to the site that isn’t working.
http://www.uctimarket.com
Provide the information from the “Support Info” tab of the plugin’s admin panel.
WordPress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Safari 5.1.3 for Mac
Plugin Version: 2.3.0
Addon Version: 26
Facebook API: OK
Theme: ClassiPress
Server: Apache
cURL: OK
Active Plugins: 5 (All in One SEO Pack 1.6.13.8; Cimy User Extra Fields 2.3.7; Contact Form Plugin 3.15; Digg Digg 5.2.1; WP-FB-AutoConnect 2.3.0; )
i have the same problem. I can login in my site, but others users apper the above mesage.
Please start a new thread for your problem, but as mentioned above, see the bold red note immediately above this comment form. You’ve excluded 100% of the requested information.
Wait, i know what the problem is.
When i login from the button on the login.php that automatically appeared upon the installation of the plugin, it logs in successfully regardless my current facebook status. However, I have placed 2 buttons on the site manually. If i click on any of those Login buttons while i am logged in on facebook, it works. But if i am logged out on facebook, those 2 buttons that i placed will show an error like mentioned above.
I tired to place the button in the site header by place this like you mentioned above
jfb_output_facebook_btn();
but it dint work. The text simply showed up. So placed this code,
//<!–
document.write('Login with Facebook’); //–>
Please help me fix this..
This code
<!–
//<!–
document.write('Login with Facebook’); //–>
–>
Please help me fix this..
Sorry, but customizations beyond what’s included with the plugin are entirely up to you to debug. See FAQ36. I have my hands way overfull just supporting users with the default features, let alone trying to work out why everyone’s individual code does or doesn’t do what they expect.
So how do i place the buttons.
I read the what it says up,
jfb_output_facebook_btn();
But this simply just shows the text. I tired on multiple locations of the site, but no luck. I tired to understand the note you gave below the command mentioned above, but i couldn’t understand completely. Just give me the exact codes that i should place on the site header so the login button is shown.
Did you even bother to read FAQ36? The last sentence is “Note: asking me to tell you exactly what to add/modify is the same as asking me to do it myself.” Then you say “Just give me the exact codes that i should place.”
jfb_output_facebook_btn() should work by itself, and I’ve personally seen it work on several dozen sites. You probably have something else going on, but as I said, I don’t offer free debugging services. The plugin is available for free as it is. If you’re unable to debug it on your own I suggest hiring a programmer who can do so for you.
Hi,
I am interested in figuring out how one can make new BP users who register/login through FB automatically become BP friends with their FB friends who are already registered on a BP site. E.g. I register for bp-example-site.com with my FB login. My FB friends Tom and Harry are already registered there. Upon registration I am automatically set up as BP friends with Tom and Harry.
Is there an easy way to do this? Perhaps it’s supposed to work this way already and I just have something set up wrong?
It looks as though this could be handled with the wpfb_login hook but I’m sure somebody has already implemented something that does this efficiently.
Thanks for any help!
Drew
No, nobody has implemented this to my knowledge – though you’re welcome to do so if you like. It would, of course, require custom coding.
Hi,
One of the plugins that I installed caused problems with the facebook login button on the login.php. Social Traffic pop works perfectly fine with and without the presence of wp-fb-autoconnect plugin.
Is there anything i can do to make twp-fb-autoconnect plugin login button work properly when Social traffic pop is activated ?
Most certainly, but it would require manual debugging to work out the specific nature of the conflict. In most cases problems are caused by something like erroneous javascript in the other plugin, or the other plugin initializing the Facebook API with a different appid.
I can add it to my list of requests to have a look at when time permits.
-On all the places of the site, when ever i placed jfb_output_facebook_btn(); – the button din’t appear, the text simply showed.
As per your guide, i understand that i have to manually invoke the two commands jfb_output_facebook_callback() and jfb_output_facebook_init().
But the problem is I dont really know what that means. Am trying to add the login button under the comment box, so should i simply place jfb_output_facebook_callback() and jfb_output_facebook_init() in the end of the comments.php and place jfb_output_facebook_btn(); where ever the exact position of the button should be ?
Am using Classipress theme
Please only submit a comment once; I deleted your duplicate comment. Also, please reply to your existing thread, not start a new one to continue the same conversation.
The documentation does not say you have to manually invoke those two commands. In any case, the Premium addon has an option to add a login button under the comment box, which sounds like what you’re trying to do – you can see how it looks here on my site and use the addon if you’d like that feature.
Hello, I have installed your plugin on my site:http://www.allsportspal.com/social-sports-network/
First your plugin was running well, then I installed other plugins related with facebook and you plugin starts to failed. THIS IS THE ERROR THAT SHOWS:
Error: Failed to get the Facebook user session. Please see FAQ37 on the plugin documentation page. UID: 0
THEN I DE INSTALLED THE OTHER PLUGINS RELATED WITH FACEBOOK
BUT PROBLEM REMAINS,
COULD YOU HELP ME: MAURICIO RETANA – allsportspal@gmail.com
below is the documentation of my site according you ask to be able to ask for support:
the data is:
Wordpress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Firefox 11.0 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: allsportspal4
Server: Apache
cURL: OK
Active Plugins: 28 (Mingle Birthdays 0.3; Mingle Profile Video Embed Info Tab 1.0; Akismet 2.5.5; All in One SEO Pack 1.6.14.1; Comment Image 1.0.7; Contact Form 7 3.1.1; Emu2 – Email Users 2 0.83b; Events Manager 5.1.4.3; Google XML Sitemaps 3.2.6; Jetpack by WordPress.com 1.2.2; Kimili Flash Embed 2.2; Mingle WP-Facebook-Autoconnect Widget 0.1; Mingle Friend Requests Widget 1.03; iCom Mingle Comment Like It 0.1; Mingle Users Online 0.1; Mingle 0.1.0; Request Box 1.0.0; Mingle Remove Me Add-on 1.0; NewsPage 2.0; NextGEN Gallery 1.9.3; One Click Close Comments 2.2; Really Simple CAPTCHA 1.5; Search Everything 6.9.3; Sticky Manager 0.9.1; Table of Contents Creator 1.6.4.1; Vertical scroll recent post 8.0; WordPress Importer 0.6; WP-FB-AutoConnect 2.3.0; )
Please try it again with the default theme and every other plugin disabled (FAQ100, first subitem). I’m not sure if you’ve done this because you haven’t answered the first question in the bold red note above this comment form.
Hi, this isn’t really a bug or problem but more a question. I’m using a BuddyPress site and when I tested this plugin out, I selected the username option for the real name without a prefix. So the automatically created usernames go like: John_Smith, for example. But what if there’s a second John_Smith? Will the second one be John_Smith1 or something like that? Because it could be a problem if both would use the same username.
Yes, John_Smith1, John_Smith2, etc
Am facing some problems so I am trying to delete the current FB app. But will effect any of the current users/registrations on the site ? Will they have to resign up ??
No.
1. I’ve tried disabling all the plugins and changing to the BuddyPress Default theme as well as Twenty Ten (the default theme).
2. I’ve tried creating a Facebook app again and connecting to it. Made no difference.
3. I’ve tried it in Chrome, Safari and Firefox. Same problem.
4. The site where the plugin isn’t working: http://words2us.com/
5. WordPress Version: 3.3.1
BuddyPress Version: 1.5.5
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 18.0.1025.151 for Mac
Plugin Version: 2.3.0
Addon Version: 26
Facebook API: OK
Theme: BuddyPress Default Child
Server: Apache
cURL: OK
Active Plugins: 6 (BP Labs 1.2.2; BuddyPress reCAPTCHA 0.1; BuddyPress 1.5.5; Facebook Like 5.9.5; WP-FB-AutoConnect 2.3.0; WP No Category Base 1.0; )
I’m running a website with BuddyPress and a child theme of the BuddyPress default theme, and for some reason the login button (under the sidbar login widget) doesn’t seem to work with this theme. Clicking on the link opens the pop up window and allows you can give permission to the app to access your data, but after that nothing happens. My website doesn’t refresh itself, and even if you refresh manually, it doesn’t seem to log in. It doesn’t make a new user account, either.
I tried the parent BuddyPress Default theme and Twenty Ten (the default theme) and it seems to work fine on those.
Strange thing is, it used to work on the current theme. And even on the current theme, if you go to http://words2us.com/wp-login.php, it works fine. The only time it doesn’t work is in the current child theme in the sidebar widget.
I’ve tried temporarily removing all the php and css files from the current child theme, but it doesn’t seem to make any difference.
What could be the problem?
I took a quick peek and there’s nothing immediately obvious, so finding the issue with your particular theme would likely require manually going in and debugging (i.e. adding javascript alert statements to see what is/isn’t getting called, etc).
OK, thanks very much for the reply, Justin.
I found the root of the problem. I used to have a Facebook Like Box on the widget sidebar with the “Show faces” option turned on, but when I put in a Like Box without faces showing, the Facebook login button worked again. It seems like the JavaScript of your plugin and the Facebook plugin conflict with each other or something. I don’t know much about JavaScript so I don’t know what I’m talking about, though.
You can get the code for the Facebook Like Box at: https://developers.facebook.com/docs/reference/plugins/like-box/
Just thought I’d let you know because this might be useful information for you.
Ah, that makes sense. Facebook seems to update their API all the time without any consideration as to how it will break older versions; the only option is to keep modifying and updating this plugin alongside. I’ve grappled with it countless times in the past. It should however still work if you use the iFrame version of their plugins (i.e. see my site, which does include a likebox + faces
)
I tried the iFrame version of the Facebook Like Box with faces and everything’s working just fine.
Thanks so much for the support, Justin. It’s been really useful.
Just a quick note: I think you want to use method_exists() around line 241 in _process_login.php to properly display the error message. As far as I can tell function_exists() doesn’t support the array parameter that you’re passing there.
Hope this is helpful.
Ah, good catch. Never noticed that because I’ve never actually seen the error occur myself.
Hello
I’m havin the same problem, FB.login() called before FB.init(). This is not a problem I could solve easily with a coder, please help I’ve included the site on my url, I kindly ask you for help and please don’t tell us to read the red section this is clearly a problem not mentioned in your FAQ.
Thank you
>>don’t tell us to read the red section this is clearly a problem not mentioned in your FAQ
I only direct people to that note when they post bug reports but don’t include the information requested there. While every possible problem isn’t explicitly mentioned in a FAQ, I’ve made sure that virtually every bug ever reported has either been fixed, or is implicitly covered by one of them. In your case, you haven’t said whether or not the issue occurs on the default theme with only this plugin. So it’s pretty tough for me to help if you don’t include the information requested
>>I’m havin the same problem
Same problem as what…?
Okay, wracked my head trying to get this to work, but no luck so far.
As to your red comments/questions:
1. yes
2. yes
3. yes
4. swapshuffleshare.com (you’ll need to provide your IP address to see the login widget)
5. As follows:
WordPress Version: 3.3.1
BuddyPress Version: 1.5.5
MultiSite Status: Not Allowed / Disabled
Browser Version: Firefox 11.0 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: Swap Shuffle Share
Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 mod_rub…
cURL: OK
Active Plugins: 29 (Adminimize 1.7.26; Advanced Custom Fields 3.1.7; Akismet 2.5.5; Another WordPress Classifieds Plugin (AWPCP) 1.8.9.5-BETA; AWPCP Featured Ads Premium Module 1.0.1; BuddyPress Album 0.1.8.11; BP Members Avatar Map 1.3; BuddyPress Activity Plus 1.3.1; BuddyPress Auto Group Join 2.2.1; BuddyPress Group Email Subscription 3.1.1; BuddyPress Group Plus 1.2; BuddyPress reCAPTCHA 0.1; BuddyPress Registration Groups 0.8; BuddyPress 1.5.5; Events Manager 5.0.50; AVH Extended Categories Widgets 3.6.4; Google XML Sitemaps 3.2.6; Gravity Forms 1.6.2; Lock Pages 0.2.2; Meteor Slides 1.4; Executable PHP widget 2.1; Regenerate Thumbnails 2.2.3; Slick Social Share Buttons 2.4.1; U BuddyPress Forum Attachment 1.2.1; Uber Login Logo 0.3; Users to CSV 1.4.5; Widget Logic 0.51; WP-DBManager 2.63; WP-FB-AutoConnect 2.3.0; )
———
Also, this is the debug email I received when trying to register via facebook and failing:
Error: Could not access the Facebook API client (failed on users_getInfo(100001710579071)). Result: ; CurlException: 77: error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
—LOG:—
Starting login process (Client: 200.71.193.10, Version: 2.3.0, Browser: Chrome 18.0.1025.162 for Windows)
WP: nonce check passed
WP: Found redirect URL (/)
FB: Initiating Facebook connection…
FB: Connected to session (uid 100001710579071)
—TIME:—
start ) +0s
final ) +0.65s
TOTAL ) 0.65s
—MEMORY:—
start ) 65.06M
final ) 65.31M (+0.25M)
LIMIT ) 99M
—REQUEST:—
Array
(
[redirectTo] => /
[autoconnect_nonce] => 128ee6e0be
[_wp_http_referer] => /
)
This is a server configuration issue. There are several proposed solutions if you Google the exact error message (“CurlException: 77: error setting certificate verify locations”), i.e.
http://martinsikora.com/facebook-php-api-without-curl-extension
or
http://stackoverflow.com/questions/8994059/facebook-application-development-using-php-sdk
Those links give code solutions, not server setting solutions. cURL is enabled on the server, so that’s not the issue.
Plus if your solution is actually to edit code from your plugin, if you could point out exactly where the code is and what it should be changed to that would be appreciated. I’m happy to pay for your premium plugin, but only if I know it will work.
Right, but they’re code workarounds for what’s seemingly a problem with cURL on the server (similar to the two links in FAQ19). The code it’s suggesting is in the core Facebook API itself (rather than my plugin’s code), which is located in the wp-fb-autoconnect\facebook-platform\php-sdk-3.1.1 folder.
I’m sure you could also fix it without touching the code, though I’m not personally familiar with configuring Apache, so if you’re not either, you’d need to try and work it out with your hosting provider. Perhaps the certificate file mentioned in the error is needed but not present (just a guess).
i.e. I’m not sure if you read the links, but the first one says:
“This problem is quiet tricky because the cURL extension is enabled, but it just doesn’t work properly. Luckily I’m not the first one who has this problem and I found this issue on the official Facebook API github page”
My host has responded as below. Is it true I need to install this certificate and that will get the plugin working? And if so why wasn’t this part of the set up instructions provided?
—
Part of the install process of using the FB API is the install of their certificate. I’m not sure why the plugin people dont tell you that,
http://www.codingforums.com/archive/index.php/t-249045.html
>>Part of the install process of using the FB API is the install of their certificate. I’m not sure why the plugin people dont tell you that
…Did they/you bother to even glance at the plugin? The certificate is included exactly as mentioned in that post. See the wp-fb-autoconnect\facebook-platform\php-sdk-3.1.1 folder…
>>if so why wasn’t this part of the set up instructions provided?
Because it’s not a step that myself nor (to my knowledge) any other user has ever had to take. Clearly your server must be missing something “standard,” but if the hosting company isn’t wanting to be helpful, I’m afraid the only thing I can recommend is for you to Google for workarounds (as described above)…
Hey Justin,
Great plugin. Premium installed and everything went smoothly.
Occasionally I am receiving user sign ups that show up blank. Looks like this–
New user registration on your site:
Username:
E-mail:
My guess is that its taking too long to load their registration details (facebook email). Any way to speed up the registration interaction without removing email requirement?
Thanks in advance!
Yeah, the Facebook interaction could be sped up by combining queries, which is on my ToDo list.
Thanks. Just this morning I have received 10 more blank registrations. Is there anything I can do on my end to correct this?
What sort of time frame should we expect an updated version?
If that’s the case, then I’d say it’s almost certainly not a “Facebook timing out” problem (or I’m sure I would’ve heard about it from other users; in the lifetime of the plugin you’re the first to report this). Thus, I can really only recommend the usual debugging route, i.e. revert everything else to default and see if it stops happening, then re-enable stuff until you find where the problem returns.
I know it’s a pain and might not be feasible on a live site, but as this doesn’t seem to be occurring for anyone else (including myself), the conflict is almost certainly coming from something else on your end…
Problem: I have not had any issue with your plugin since the beginning. However, this morning, when I tried to login using my iPad, the customary tab that opens up and is supposed to bring up my website, nothing is rendered. I have closed out Safari and rebooted my iPad as well.
This is the url that shows for that tab:
(removed)
I have tried logging in using my laptop and desktop. No issue there.
Have you tried disabling all your other plugins and using the default theme (FAQ100)?
Yes, every one except Buddypress and yours.
Have you tried recreating your Facebook app and reconnecting it to the plugin (FAQ100)?
Yes.
Have you tried it in another browser (FAQ35)?
Yes except for my iPad.
Provide a link to the site that isn’t working.
http://thedancersportfolio.com/
Provide the information from the “Support Info” tab of the plugin’s admin panel.
Wordpress Version: 3.3.1
BuddyPress Version: 1.5.3.1
MultiSite Status: Allowed / Enabled
Browser Version: Safari 5.1.5 for Mac
Plugin Version: 2.3.0
Addon Version: 26
Facebook API: OK
Theme: Announcement
Server: nginx/1.0.11
cURL: OK
Active Plugins: 3 (Breadcrumbs Everywhere 1.1; Jetpack by WordPress.com 1.2.4; WooSidebars 1.0.0; )
Any advice?
If it’s only happening on one iPad, it could only be something in your device, i.e. cookie, cache, etc. Try another iPad?
Hello Justin,
I just had another user try accessing the site using their iPad. The same thing is happening for them. By the way, I’ve also reset my iPad.
Does it happen on my site from both iPads? I don’t have access to one myself, but I definitely *have* logged into this site from one in the past…
Also: try logging in as a different Facebook user, so there are no common variables at all.
Yes, the same outcome happens on each iPad using different Facebook accounts when trying to login to your site. In other words, We can’t login to your site using either iPad. I have no issue logging in to your site from the desktop, however. Weird.
Facebook Connect seems to be universally broken on iOS right now. I just tried logging into both Spotify and Airbnb from my iPhone, and neither of those are working either – so it looks like the geniuses over at Facebook have broken their API yet again. We can only wait for them to fix it, I guess.
Hello Justin,
Is there a way for your plugin to detect the failed attempt and place a message that informs the user with helpful instructions? Something like, “Temporarily unable to login using your Facebook credentials at this time. While this is being addressed, please login to the site using your username and password, instead.”
I don’t think so in this case, because the issue is that the popup dialog doesn’t redirect back to the main page. I mean, I GUESS you could program around it by i.e. set a javascript timer and kill the popup and show a message if Facebook doesn’t send you back after a long enough period has elapsed, but that’s definitely not something I’m going to implement as this is a universal bug that Facebook will ultimately HAVE to fix
I hear ya! The alternative when discovered is to deactivate your plugin until FB remedies the situation. You would think that FB would inform its users when changes are going to be made so that it could be tested before rolling it out to production.
I would think FB just wouldn’t break their API all the time. Sadly, that’s obviously wishful thinking (and one of the reasons so many of my developer friends REFUSE to go anywhere near their platform
)
It’s working on my iPhone again now.
It’s also working on my iPad. Thanks!
Dear Justin,
First of all, thank you very much for your pluggin. It is awesome and super useful.
I have been reading the FAQs but haven’t found one corresponding to the error that I have. I’m not sure whether it’s on the pluggin side. Whenever I try to register using the pluggin (you can try here http://enlaze.net/?page_id=97) the Facebook pop-up appears but contains the following error: An error occurred. Please try again later.
This error appeared after migrating my website from domains. I don’t know what the cause might be. I updated the URL on the facebook application developer area. I also deactivated and removed the pluggin completely and installed it back again. Nothing changed.
Support information is the following:
WordPress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Firefox ? for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: eList
Server: Apache
cURL: OK
Active Plugins: 5 (Rating-Widget Plugin 1.4.1; Recommend to a friend 1.0.6; Sidebar Login 2.3.5; Twitter Facebook Social Share 2.4.0; WP-FB-AutoConnect 2.3.0; )
I really appreciate your help.
This problem occurs when something in your Facebook app is configured wrong, though I can’t really guess what. Please try deleting it and creating a new one from scratch (see FAQ100, 2nd subitem).
I installed the premium version and the FB-Connect button still does not display in the comment form below the single post page. and there is no check box for remember me in the login widget.
Installing the addon makes the options available, but does not enable them by default. You need to go to the admin panel and activate those which you want to use.
(Note: Please only post a question once; E-mailing me and then posting the same comment two additional times will not yield a quicker reply. Whether there are 3 copies in my inbox or 1, I do my best to answer all questions as quickly as I can.)
I would like the plug-in to call wp_mail instead of the mail function. This allows for custom mail server configurations.
Also, it would be great if you broke out the facebook membership calls into public functions. I have hooked the wpfb_inserted_user action to assign a membership level based on facebook groups. I use the membership plug-in to handle the restricts. I use your plug-in to to the facebook authentication and map a user to a membership level based on facebook groups.
>>I would like the plug-in to call wp_mail instead of the mail function. This allows for custom mail server configurations.
I’ll add it to my todo list for the next version
>>it would be great if you broke out the facebook membership calls into public functions
Not sure what you mean by this
Hi there. Thanks in advance for your help!
We are using a Facebook tab implementation and it’s working great in Firefox, Chrome, Safari, everything except for IE.
You can view it here:
http://www.facebook.com/believebox
You must “LIKE” the page in order to view the “Login With Facebook” tab; after that, if you click through on Chrome, Firefox, Safari, it works fine.
In IE, however, unless you have your security settings turned to “LOW,” the redirect fails and it hits a strange 404 error.
We are thinking it’s either due to a P3P compliance issue or cookies. But I was really surprised not to see this anywhere else.
I just purchased the premium version, would LOVE to get this setup and working…I am totally happy to have paid you for your time!
Here’s the pertinent details as well:
WordPress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Allowed / Enabled
Browser Version: Chrome 18.0.1025.163 for Mac
Plugin Version: 2.3.0
Addon Version: 26
Facebook API: OK
Theme: Twenty Eleven
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0…
cURL: OK
Active Plugins: 3 (All in One SEO Pack 1.6.14.1; WordPress HTTPS 1.9.2; WP-FB-AutoConnect 2.3.0; )
Sorry, but this is definitely a FAQ36 situation (i.e. a customization well outside of the standard functionality that I cannot personally support).
While I do sometimes take on individual custom work, I have a 6 month backlog on projects at the moment, so if you’re not able to debug it on your own I’m afraid you’ll need to hire another developer to do so…
So wait,
I just bought your plugin, it doesn’t work in IE, and you’re telling me you don’t support that? I’m literally doing nothing out of the ordinary with the plugin; all I’m doing is a “Login with Facebook” event. Exactly like what everyone else is doing and what the plugin is supposed to do. I think you are getting thrown off because it is in a Facebook tab, which is no different than on a website.
It would be great if you could simply refund me the money I just paid––or take 10 minutes to at least address the issue, instead of assuming it’s out of the ordinary. I took the time to provide a detailed, organized request with all the relevant information, it’s the least you could do for me.
OK sorry, perhaps I misunderstood – I thought the problem was with your custom tab situation rather than the login itself. The plugin itself definitely works on IE though (go ahead and load up my site and see?)
The link you provided was for a Facebook page rather than a WordPress blog, so I wasn’t sure precisely which “source site” you were wanting me to look at – can you provide a direct link to the WordPress site so I can see if it’s working in IE?
Thanks Justin.
Well, the little tab you’re seeing on this page:
https://www.facebook.com/believebox/app_168475213272292
Is actually a WordPress blog found at https://cohnweb.com/wdyt-weekly
The thing is, you cannot access it on that URL because of the “LIKE” functionality.
Can you just take a look inside of that tab in IE? I saw you liked the page (thanks for testing it) –– now refresh, try clicking “Login with Facebook” on that big image that pops up (give it a second) and you’ll see the 404 occur in IE.
Thanks in advance for your time. I know and am sure you are super busy, just wanted to see if you could see what was going on…I’m sure it’s something to do with the cookies failing to serve in IE.
Cookies would be my guess too, or perhaps something to do with https. But again, this is why I was saying that it’s “nonstandard functionality” that would require specific debugging for your specific situation (the issue *does* seem to be due to the tab situation)
Also why I suggest giving it a whirl on my site, so you can convince yourself that the plugin does indeed work in IE (re: “I just bought your plugin, it doesn’t work in IE, and you’re telling me you don’t support that?”). I certainly support IE, but making sure it works within a Facebook iFrame across domains etc is something quite different…
I just tried your setup in IE, and I do see the issue you mention. To debug if it’s the plugin itself that doesn’t work in IE, I’d imagine you could pretty quickly comment out the code that checks for the LIKE’d situation so you can just test your site directly in a browser. As far as getting it to work within your iFrame though, it would require explicit debugging, probably via a combo of backend logging to see where it’s trying to redirect to etc, and examining what’s going on at the frontend with the IE developer toolbar.
Hi Justin,
Thanks for the wonderful plugin. Everything is working perfectly. I have a question. I am doing some custom operations in my bp theme. But i need some help regarding it.
Is there any way i can know whether my user is logged in via FB-Connect or Not? So that i can offer different options to them.
Thanks\
All users are just WordPress users – there’s no difference between whether they’ve logged in by entering a username/password or via Facebook.
If you’re looking to determine whether or not a given WordPress user has an associated Facebook account (aka they have, at some point or another, logged in with Facebook), you can examine their usermeta (as per the 2nd step under “How It Works” above). See the code in _process_login.php for reference (it’s all commented).
Hi Justin,
First off, really nice job you just did! I’ve bought the premium Add-on to have more features available to my clients. I’m setting up a project which is using WP eMember Plugin to either redirect logged in users as set specific user security attributes to a page. Everything works fine except if an user needs to login manually without a FB account. By logging in through your plugin, he is redirected to a setup page but his private content is not shown. Something I achieve by using WP eMember login script inside an editor page.
So, any idea how can I integrate both plugins so I have this feature enabled again?
Thanks for it.
Regards,
Eduardo
I don’t really understand exactly what you’re trying to accomplish. Just to get non-WP logins (i.e. logins by entering your user/pass) to redirect to a given page rather than refreshing the current one?
Hi !
I have question about extended_permissions with your Facebook login plugin.
I could not find any guide on how to use wpfb_extended_permissions (Hooks & Filters)
I did visit developers.facebook.com/apps and under Auth Dialog checked Authenticated Referrals and added email, user_birthday, read_stream and save it.
When I try to log in into wordpress/buddypress with facebook button I do login/register successfully. However, when I click login with Facebook there is no question whether I allow my email, read_stream… In Admin area under Users there is no true email but it is email like: FB_1003303782@unknown.com.
What am doing wrong? How can I get real email and other infos into wordpress/buddypress?
Do I have to change something in your code? Sorry for my lack of knowledge…:)
Thank everybody in advance,
Regards,
Peter
Prompting for e-mail is just an admin panel option; importing information to Buddypress is a feature of the Premium addon.
Hi Justin,
Thank you for your quick response on Prompting for e-mail.
I have bought Premium add-on, but do not know how to do it. Do you have maybe any link (documentation) that explains how to do it?
Sorry for any inconvenience,
Highest Regards,
Peter
There really isn’t any (need for) documentation – it too is just an option in the admin panel…
See the screenshots above.
I did checked Birthday instead of (no mapping) and when login in with Facebook it did ask for permission for birthday, but still did not ask for permission on true email.
When I checked inside admin/users, there was not any field with birthday and email was still old. There was not field with birthday neither in phpMyAdmin
Do I have to setup new fields – field group for email, birthday etc
Regards,
Peter
Justin,
I am truly sorry…hahahah…till now i did not see section in your plugin admin….:) I was looking for it in buddy press admin…:D
E-Mail Permissions:
Enforce access to user’s real (unproxied) email (Mouseover for more info)
Sorry for any inconvenience,
Regards,
Peter
Hey Justin,
Thanks for the awesome plugin! I will definitely upgrade to the premium version if I can iron out these small kinks:
1. I am trying to use this along with WooCommerce, but I get a “Cannot modify header information” upon refresh as WooCommerce passes session cart information through the header. I tried using meta refresh instead but got an error message via your plugin.
2. WooCommerce retrieves cart information based on the variable $user, which I cannot find for this plugin. It passes $user_login and $user_ID just fine, but for some reason $user is needed. This is less of a concern as I can comment it out and the only thing I will lose is the ability to save cart contents between sessions, but definitely would be nice to have.
Any ideas? I am fairly adept at editing PHP files in my instance, but am not knowledgeable enough to write new code. Thanks for any help you can provide!
Kyle
Ironing out conflicts caused by that one specific plugin would require my explicitly debugging them together; I can add it to my ToDo list, but as no other users have asked for it, it’d be a pretty low priority for now…
WordPress Version: 3.3.2
BuddyPress Version: 1.5.5
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 18.0.1025.168 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: BuddyPress Default
Server: Apache/1.3.41 Ben-SSL/1.59
cURL: OK
Active Plugins: 14 (BM Custom Login 1.6.5; BuddyPress Album 0.1.8.11; BP Auto Login on Activation 1.0.1; BP Redirect to Profile for Buddypress 1.1; BpDev Logout Redirect to Mainsite for Mu/BP 1.0; BuddyPress Activity Plus 1.4; BuddyPress Profile Privacy 1.4.2; BuddyPress Sliding Login Panel 1.2; BuddyPress 1.5.5; Widget Logic 0.52; WordPress Access Control 3.1.2; Email Login 4.2.3; WP-FB-AutoConnect 2.3.0; WP-PhotoContest 1.5.6; )
Hi Justin!
I have a problem with the login process! After login, I get an error page shown! All plug-ins I have previously disabled to find the problem! Please can you help me!!!!
You sure seem to like exclamation points! Sorry it’s not working for you! But I can’t guess what the error message would be if you don’t tell me!!!
Hi Justin,
the error is when i try to login i will not pass on the right side instead of my profile. user does not come on her profile even though they have been created by the sytem. A subsequent application with the correct user data is not possible.
I don’t really understand what that means: “i will not pass on the right side instead of my profile.” But I tried your site and _process_login.php is resulting in a 404; there is already a FAQ above that answers how to address this.
Hi,
I’m a premium version user of your plug-in. I’d like to know when is planned a new release with this feature: users can override their facebook photo with an local uploaded avatar.
Thank you
Dimitri
I don’t have any immediate release plans at this time.
Thank you for your answer, as I really need the possibility for the user to override their facebook avatar, as it’s my client request, I’d like to know if I can hire you to accomplish this job?
Thank you.
Dimitri
Depends on your timeline; I’m not really available for freelance work for at *least* another month…
I’ve been using the premium version for awhile and this thing is phenomenal; great job. One question – I just used the widget to disable WP logins, but is there a way to lock down the entire site so that the only way to log in at all is via facebook? I’m getting crushed with spam because I still have the “register” link active on the wp-login.php form, and I want to make it so the only way to log in anymore is through facebook using this plugin.
…just disable user self-registration. This is a general feature of WordPress, no plugin needed.
Hi,
Let’s cover off #101 first:
1. I have disabled plugins and themes and the plugin works
2. Reconnecting the plugin also has not worked
3. It also does not work in another browser
4. Here is the page: http://viabl.es/join
5. Support info:
Wordpress Version: 3.3.2
BuddyPress Version: 1.5.5
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 18.0.1025.168 for Mac
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: Frisco-Group-Pages for BuddyPress
Server: LiteSpeed
cURL: OK
Active Plugins: 2 (BuddyPress 1.5.5; WP-FB-AutoConnect 2.3.0; )
Basically, you go to http://viabl.es/join and you’ll see the button, but it does not redirect once clicked. Could this be a problem my installation of the plugin?
I don’t really understand the issue though. In #1, you said that it works fine when you disable your other plugins and revert to the default theme – so you should be able to very easily determine what’s causing the problem by re-enabling them one at a time, as per the FAQs.
The login button has suddenly stopped working on my site. I have not added / removed any plugin or done any code change. It was working fine about 12 hrs back.
Is there some change in the FB API or anything else so that this happens? See http://www.cricketradius.com/register/ for a page where the Login Button should be there.
I am having the same problem. The Button just stopped working. I notice I the Button here on http://www.justin-klein.com stopped working also. Weird, Maybe Justin could give us an update.
same issue happening to me
Since It seems to have stopped working for everyone all at once, I can only assume that Facebook has broken their API yet again. Unfortunately, I’m out in the Mongolian countryside with no laptop and only a horrible cellular connection, so there’s no way I can look into this for at least 3 or 4 days. Hopefully Facebook will have repaired things long before then, but of not, it’ll be the first thing I do when I get back to my laptop.
Same problem
Hi Justin.
I want to ask if could we have a workaround.
For instance, the user could enter without using the button “connect to Facebook”?
From already thank you very much
It looks like as of this morning, Facebook has fixed the bug that they introduced in their API a couple of days ago (which was responsible for globally breaking this plugin’s functionality):
https://developers.facebook.com/bugs/386085844776949
It’s currently working again here JK.com, so hopefully yours are all fixed too…
Ii is working
Greetings,
I could use some support. I’ve done all the steps in faq100 except for re-created the facebook app. I need someone else to do that and coordinating that right now is a bit tough. But I do successfully connect to the app from within the admin side.
What seems to be happing is the widget will start to load but then disappear as it attempts to autoconnect me. This is the behaviour in FF. In IE I get the option to click and logon with FB. I get the dialog box from FB, but when it returns after logging on to FB the widget disappears.
the site is at http://ExtremeFitnessMaritalArts.com. The widget will be at the top of all the pages, right under the phone number. If successful you can read posts in the “student area”. Please feel free to connect and try it. I am not sure what is left to try.
I’ve been working for about a year and now it recently broke.
Here are my support diags
Wordpress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Firefox 12.0 for Windows
Plugin Version: 2.3.0
Addon Version: 25
Facebook API: OK
Theme: Striking
Server: Apache
cURL: OK
Active Plugins: 31 (Share Buttons by Lockerz / AddToAny 1.0.2; Analytics360 1.2.7; AutoChimp 1.13; Broken Link Checker 1.5.1; Core Control 1.1; Facebook Comments Importer 1.2; Flexi Quote Rotator 0.3.2; Global Hide/Remove Admin Bar Plugin 1.4; Google XML Sitemaps 3.2.7; Gravity Forms 1.6.4.2.1; Gravity Forms MailChimp Add-On 1.6.3; Gravity Forms Signature Add-On 1.0.beta1; leenk.me 1.4.0; MailChimp 1.2.9; Members 0.2; Executable PHP widget 2.1; Redirection 2.2.13; Search Meter 2.8; Social Metrics 2.1; Theme My Login 6.1.4; User Access Manager 1.2.2; W3 Total Cache 0.9.2.4; WordPress Importer 0.6; WordPress SEO 1.1.5; WP-FB-AutoConnect 2.3.0; WP Hide Dashboard 2.1; WP-Mail-SMTP 0.9.1; WP Overview (lite) 2011.0723.2011; WP-Table Reloaded 1.9.3; WP-Testimonials 3.4.1; XCloner 3.0.7; )
Call off the dogs!
For whatever reason, today everything is working just fine, and again nothing changed.
So I guess even facebook can break down?
Yep, it’s not uncommon. Facebook is terrible at maintaining platform reliability
https://developers.facebook.com/bugs/386085844776949
Hi Justin,
I have a problem for a login button.
I’m using your Wp-Fb Auto connect plugin premium.
I could use the login button until today morning.
However it suddenly become not work.
1. When I’m loging in to Facebook, the button can not see.
2. If I logout from Facebook, I can see the login button.
3. However, when I tried to login with clicking login button I can see now, I saw the loading image and then login button disappeared and It doesn’t do redirection.
I tried to make new wordpress and I installed the plugin for a test.
And I deactivate all other plugins.
Also, I created new Facebook application too.
But, the result was same.
You can see this page ” http://goo.gl/6Kqt0 ” with password ” fblogin “.
The login button must be in the Blue box.
But, now you can not see it.
It seems that this is some Facebook’s API change.
I hope you release fixed version as soon as possible.
Thank you.
WordPress Version: 3.3.2
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 18.0.1025.168 for Windows
Plugin Version: 2.3.0
Addon Version: 26
Facebook API: OK
Theme: manifest_v1.1
Server: Apache
cURL: OK
Active Plugins: 10 (Adminimize 1.7.26; Cimy User Extra Fields 2.3.7; Exec-PHP 4.9; Front End Registration and Login Forms 1.0.2; Hide Login 2.0; Improved Include Page 0.4.8; Mail From 1.0.1; TDO Mini Forms 0.13.9; WP-FB-AutoConnect 2.3.0; WP Multibyte Patch 1.5.1; )
It looks like as of this morning, Facebook has fixed the bug that they introduced in their API a couple of days ago (which was responsible for globally breaking this plugin’s functionality):
https://developers.facebook.com/bugs/386085844776949
It’s currently working again here JK.com, so hopefully yours is fixed too…
After login in with facebook it is not showing the logged in status like
Welcome, justin
Edit profile | Logout
http://cl.ly/1B3B0r0m0Q2E1P0Z1z0H
Not sure what you’re trying to show me with that screenshot, but hopefully it’s the same global API bug as in your other comment above, and has since been fixed…
The plug-in stopped working…. any hints? Thanks you. I’m a premium user
My Facebook Login Button disappeared this morning from Firefox, still there is in IE and working.
The same for me!!! what’s going on??
I’m a premium user too.
Please!, give us a response as soon as posible!
Same trouble here. It seems to be related to if I’m logged into facebook or not.
(Logged into Facebook but Not Logged into Website) Buttons don’t show up, note I’m not logged into my site here. I know the buttons go away if I’m logged into my site.
(Logged out of Facebook and Website) Suddenly Buttons show up.
But they don’t work either way.
Has anybody been able to figure out a solution to this? Justin is not going to be able to fix this for another 3-4 days so if someone figures out what is broken, please share with all here. I will do the same if I find what is broken
Sumit
It looks like as of this morning, Facebook has fixed the bug that they introduced in their API a couple of days ago (which was responsible for globally breaking this plugin’s functionality):
https://developers.facebook.com/bugs/386085844776949
It’s currently working again here JK.com, so hopefully your sites are all fixed too…
Thanks Justin, seems to be working. Also, great job here, I think this is the first travel blog I’ve seen set up around traveling and computer programming.
Thanks – and glad it’s back up
Im getting the following error, do I need to purchase the premium version? Im pretty sure im not running a multisite…
http://www.goodywish.com is the url in question and here is the error which appears after cycling through facebook’s setup and pressing login (on the facebook popup window)
Warning: function_exists() expects parameter 1 to be string, array given in /home/goodyw5/public_html/wp-content/plugins/wp-fb-autoconnect/_process_login.php on line 241
Error: wp_insert_user failed!
If you get this error while running a WordPress MultiSite installation, it means you’ll need to purchase the premium version of this plugin to enable full MultiSite support.
If you’re not using MultiSite, please report this bug to the plugin author on the support page here.
Error message: Undefined
WP_ALLOW_MULTISITE: Undefined
is_multisite:
Please help asap! And if I need to have the premium version (totally cool with buying it) please explain why.
Thank you
See FAQ100, 1st subitem (…and FAQ101)
Hi sir,
I have buy premium fb autoconnect but when i activated plugin FB Comment we8u.com , user can’t connect “Error: Failed to get the Facebook user session. Please see FAQ37 on the plugin documentation page. UID:”.
And if the comment plugin deactived, autoconnect running again. Do you have advise what plugin fb comment will works? My site is odhaberhaksehat.org
Regards
I haven’t personally tried all of the Facebook Comments implementations, but as long as the one you use doesn’t re-include the Facebook Javascript, it should work together (I have seen several working with my plugin). If they don’t have an advanced option to disable including the JS, you could always comment out that part of their code.
Ok thanks, now i have plugin works
My Facebook login button works on the homepage, but if I go to any other page and try to click the button to login, it just does nothing.
FAQ101
Have you tried disabling all your other plugins and using the default theme (FAQ100)? Yes
Have you tried recreating your Facebook app and reconnecting it to the plugin (FAQ100)? Yes
Have you tried it in another browser (FAQ35)? Yes
Provide a link to the site that isn’t working. Provided when you click on my username.
Provide the information from the “Support Info” tab of the plugin’s admin panel.
Wordpress Version: 3.3.2
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Disabled
Browser Version: Chrome 19.0.1084.46 for Windows
Plugin Version: 2.3.0
Addon Version: Not Detected
Facebook API: OK
Theme: GeoPlaces
Server: Apache
cURL: OK
Active Plugins: 5 (BM Custom Login 1.6.5; Cudazi Scroll to Top 0.1; Mingle Image Gallery 1.0.00; Mingle 0.1.0; WP-FB-AutoConnect 2.3.0;
I just logged in at http://ecoworldmaps.com/archives/place/wuksachi-lodge and it worked fine (Chrome) – see your user list, you’ll see Justin Klein.
if it worked for you, then please can you delete my comments that i’ve made here on your site so that it ensures the privacy of my website and project
my last comment was made before i tested it out again on my end…i’m still not able to get it to log in from any page besides the home page. i have tried on chrome and firefox…if i navigate to any other page besides the homepage while logged out, and click on the facebook login button…nothing happens
You’re including the Facebook javascript twice – once for my plugin, and again for “twitter & facebook likethis option.” View your source and you’ll see it. I assume this other include is coming from another plugin, so I have doubts that you actually tried disabling all of your plugins and going to the default theme – a default WordPress install absolutely *does not* include any Facebook code, yet your website does.