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 (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.
Suggestions for additional features may be submitted/sponsored/voted for on this project's Fundry page.
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).
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. What additional features are under consideration for the Premium add-on?
I maintain a complete list of feature requests on Fundry here. If you'd like to support/hasten a feature you can do so by pledging a small amount towards its development; otherwise, I'll address them in order of urgency, popularity, and ease. If you have another idea you'd like to see added you may leave a comment below, but please note that new features are only being implemented in the Premium add-on at this time.
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.
33. When I updated to WP-FB-AutoConnect v2.1.0, everything stopped working.
Version 2.1 was the first to use Facebook's new 3.x SDK. If this broke your site, there are three likely causes:
- If you're a Premium user, you must also update your addon to v24 (or newer). See FAQ30 for how.
- If you have other Facebook plugins, make sure they're not still using the old SDK.
- If you've added your own actions or filters, make sure that calls into the Facebook API are up-to-date.
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. At the time of writing, this plugin has been tested on:
- Windows: IE 7-9, Firefox 3-8, Chrome 10-15, Safari 4, Opera 10-11
- Mac: Firefox 3-4, Chrome 11-12b, Safari 4-5
- iPhone: Safari 4-5
- Linux: Firefox 4
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..."
This should be fixed since v2.1.0. If you're still experiencing it, please report it below and specifically mention what version you're using, and that you've tried it on the default theme with no other active plugins (see FAQ100).
38. Why isn't my login widget showing the connected user's avatar?
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.
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. Virtually every problem that isn't solved by #1 has been solved by this.
- If something still isn't working, you may post a question below - but make sure to specifically mention if you've tried it with the default theme, ALL other plugins off, and have tried recreating your app. Otherwise I'll just direct your attention to this FAQ.
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 the information from the "Support Info" tab of the plugin's admin panel, as well as answers to *ALL* of the following questions. 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.



…Huh? Is there somewhere I’m using multi-friend-selector?
Hey, the plugins seem to be great. I’m wthinking about using the premium version. There’s question i’d like to ask, or maby a situation to simulate.
I want to start a WPMU buddypres mebership site. Having the option to use fb login is great and makes users life easier. But is it working with paid membership sites? I want to have some content aviable for all visitor + I want to give them an option to login with fb account as well so they can comment chat create account groups within my site, and what’s more for those who will want to get my premium content they’ll have to pay. Will they be able to login also with fb account to that premium parts of site as well?
To shorten this up. Can I combine WPMU (with different blogs) + BuddyPress + one of many membership plugins like Magic Members and your fb connect plugin to make the whole thing working for the free content, socail content (after login) and paid premium content…? Your answear will be very helpuf. Thank You n advance !!!
I’ve not used Magic Members myself so I’m not sure how much custom code (if any) such an integration would require, but in either case, what my plugin does is pretty clearly documented above: it simply allows users to transparently create and login with accounts from Facebook. If you would like to take advantage of the various filters offered to assign different roles/privileges to new users that’s easily feasible (I do something similar here on my site with Role-Scoper, where users who are personal friends of mine on FB are automatically given additional privileges, but not otherwise). Again though, such custom integrations are really up to you. If you want to be sure, you can implement everything on a single site with the free plugin and then buy the premium one once it’s working to your satisfaction.
Yup, actually I am already using the same app ID and secret key for your plugin too (same with fb comments). Just had a doubt just incase they conflict
If later on I decided to change to a new app (if i run into too many errors), is that possible to port in the current users to a new app?
Other than that, thanks a low for your plugin man. It had made things easy for bloggers alike.
take a bow
Hi,
I’ve followed all the steps very carefully, as well as all the error procedure steps, (disable plugins etc etc)
And for the life of me, I can’t get the “login with facebook” button, to show at all!
The actual form shows, and that’s it!..
I’m using Chrome
Windows 7
Please help,
Your’s is the only problem that does EXACTLY what I want it too!
Thanks,
Mike.
@Bodhidharma: Not sure about porting users, but I highly doubt it. Please search Facebook’s docs as this is not an issue specific to my plugin
@Mike: Your page is reporting that you’ve not set a valid Facebook API key.
Hi,
Thanks for getting back to me.
I don’t understand what i’ve done wrong, I’ve even rebuilt the app from scratch, I’m sure its correct? :S
I don’t know what else to do :S
…I just checked and I see nothing wrong. It seems to be working.
The installation seemed easy enough. It was point, click, shoot but when I try to test it, this is all I get in response “Error: Failed to get the Facebook user session. This is usually due to a temporary problem with Facebook’s servers; please try again later.” I was logged into facebook at the time I tried to log into the site. Since the installation seemed idiot-proof, I guess this idiot can’t figure out how to trouble shoot. I really can’t disable my other plug ins and try again because some of them are tied to site functionality. Any ideas?
If you cannot disable other plugins/theme on your site, you’ll need to setup a duplicate dev site on which to test. Every time this issue has ever been reported it’s been caused by a conflicting plugin or theme (as well as 99.5% of other problems that are reported), so I cannot help you debug unless you do this.
Hello,
I am working on a website which uses WordPress and wp-fb-autoconnect. And I have a problem. When I am connecting with my Facebook account, I have the popup which is displaying but after registered my informations, this popup is closing and nothing happend. Do you know what is the problem ?
Thank you !
Yes. The problem is that you’ve ignored the bold red note I placed right above this comment form.
Hi Justin. I can’t figure out why the same code on one Facebook page outputs the login form, but on another page, the code says the callback was already called and skips.
https://apps.facebook.com/moviestreaming (outputs the jfb_js_login_callback_form)
https://www.facebook.com/FilmDemic?sk=app_223615011031939 (skips the jfb_js_login_callback_form)
It is the same exact page, just displayed in two different areas… Any idea?
PS, I’m calling the button through:
Justin, please disregard my last comment, it was an error on my side… css was hiding a button above the one in question, thus it skipped it. my apologies…
-Luke
please help. The plugin changed the admin avatar when I tested using my personal FB account. Even after unloading and deleting plugin I STILL cannot change my Admin Avatar. Only had theis issue since sintalling plugin, could always change before.
desperate to change.
You’re mistaken. It’s not possible for the plugin to affect the avatar once it’s been disabled. It doesn’t even overwrite the built-in avatar in the first place, just stores the Facebook one in a separate piece of usermeta (you can see how it works in Main.php).
For some reason I just can’t get the avatar to work. I have the pro edition, turned on in multisite. Whether or not I have plugins on or off it just won’t show the avatar.
http://m00.biz/VtmsYE
I tried it on my test site and same problem on the server. This one doesn’t have plugins enabled (except gravity forms and 2 other multisite plugins that are common for shared account multisite)
http://m00.biz/LKTGJ8
Turning off the plugins I still cant get that photo to show up! Not sure if it is just my account and friends but I don’t see them. The .com has avatars cached, the .biz has no caching, both have the premium version installed. Hate asking here but I’m stumped. Thanks as always for the stellar support.
Justin – I can’t edit my comment but had two additional items to add. Regarding the Facebook avatar not showing, on the back end I see this – I have multisite on. Not sure why its “not allowed” but it is enabled:
WordPress Version: 3.3.1
BuddyPress Version: Not Detected
MultiSite Status: Not Allowed / Enabled
Browser Version: Chrome 16.0.912.77 for Windows
Plugin Version: 2.2.1
Addon Version: 25
Facebook API: OK
SECOND: How can I change the register link? Ideally this would be another field in the plugin. You have all the redirections, amazing stuff. But the one I don’t have is a space to put in the login page. Right now it’s set to the default and I think the only efficient way to create that link is to remove the php echo wp_register and just manually hack in my link.
1) You *still* have not explicitly told me that you’ve tried it with the plugins off AND THE DEFAULT THEME. Just the plugins off.
2) My previous reply to you suggested how you can debug this, but you didn’t seem to address that at all.
3) The first link you provided does not work. 404. Using the second link to go to your site and then viewing your test article, I don’t see a way I can post a comment, nor are there any existing comments – so I cannot see whether avatars are showing or not.
4) The support information you’ve included is only partially complete. The panel also lists the theme name, active plugins, and cURL.
5) Regarding “Not Allowed,” this is because you haven’t defined WP_ALLOW_MULTISITE (which you’re supposed to define according to the instructions here – I’m surprised multisite even works without it…)
6) Regarding your “SECOND,” I don’t really understand why you’d want a different register page, but yeah, if you want to change that you’ll have to edit the PHP.
1) Sorry that I didn’t make it clear, tried it stock no plugins on the .biz site which you can see now (Yes, I know support can be frustrating but I’ve done most of these before coming back here.) After testing I can see the FB avatar in the annoying WP admin bar and I can see the avatar in the comment too. It’s just not in the sidebar.
2) Not sure – honestly, with the “click to see threads” and linear response here it’s hard to follow.
3) The 404 page was actually correct. It has the login box on the side and register link and thought you would have used that. Now that we’ve isolated the issue, not an issue.
4) Agreed. Here is the test site. You’ll see no plugins, stock theme, eveything is OK and Multisite Status is even Allowed (Not sure why it says that in the primary site but it’s in theconfig). All is set properly.
5) Answered, set right on the .biz site.
6) The WordPress login/register page is terrible and does a good job of making it difficult to keep people on your site with a 10 second registration. Almost all my sites use the gravity forms login or another membership plugin which has its own membership page where a user can create a user name, password, enter an email address and after filling in the captcha correctly hit “submit” and can immediately enjoy part of the site.
This didn’t make it through:
WordPress Version: 3.3
BuddyPress Version: Not Detected
MultiSite Status: Allowed / Enabled
Browser Version: Chrome 16.0.912.77 for Windows
Plugin Version: 2.2.1
Addon Version: 25
Facebook API: OK
Theme: Twenty Ten
Server: Apache
cURL: OK
Active Plugins: 1 (WP-FB-AutoConnect 2.2.1; )
…I just realized what’s going on. You’re not using the Premium widget. You’re using the Basic widget.
EDIT: Wait, sorry! I’m wrong. You have, of course, enabled the option to show avatars in the widget though, right?
LOL, yes, I thought I might have been using the basic and not premium widget. Double checked and that’s not it as I have the right one there and put it up again, fresh. “Use FB profile pictures as avatars” is checked. Logged out and in, that didn’t do it. Decided to use the caching so I created the directory, 777, logged out and logged in, still no luck. Weird. Everything else works.
Well honestly, I don’t know what to tell you. I’m looking at your page’s source code (on the .biz site) and it’s not even outputting the avatar div – which means the option isn’t enabled. If you want to give me an admin login I’ll take a look (but I’ve literally seen this work on over a hundred other sites and not one single user has reported such a problem).
Just sent access info to where I think I can reach you. I just looked at the code and don’t see any place where it would be possible for the avatar to be inserted, e.g. the php code to echo the image. I would think that the pro version would replace or insert a variable but I’m not sure how you are accomplishing that unless it inserts a replacement for the standard widget function with two arguments. I’m going to download another copy of the plugin since I didn’t modify anything other than the Register link that I did 5 minutes ago…
Just want to let you and anyone else watching know, this plugin is probably the smoothest and best plugin I’ve seen for Facebook. Anything that says “FBC” usually means a major FB disconnect somewhere and often. This works great, just one weird glitch on my server.
…Just logged into your site, and as I said, the option wasn’t even enabled. I enabled it, clicked save, and the avatar showed just fine.
Please see FAQ38 and/or the 4th screenshot above.
I found that when my personal facebook page synced with the wp admin account – the original admin avatar was deleted totally. I had to recopy original avatar to restore.
but also something else odd. When the facebook avatar is imported into WordPress(with buddypress) the avatar size is 180×180 !! Too big when displayed in buddypress activity stream which is 48×48 pixels. Can the Facebook avatar be resized on the fly to match the standard wordpress avatar size??
@George:
>>the original admin avatar was deleted totally. I had to recopy original avatar to restore.
…Recopy the avatar? What do you mean? The WordPress core doesn’t store any avatar files locally that I’m aware of. And the plugin CERTAINLY doesn’t delete anything. Again, feel free to reference the source code.
>>Can the Facebook avatar be resized on the fly to match the standard wordpress avatar size?
See FAQ100 (and the big red note right above this comment form) – you’ve ignored the most important piece of information I request when people ask for help.
180×180 means it’s taking the full-size image which likely means it’s calling the avatar function wrong. However, even if it were requesting the thumbnail, the dimensions may be slightly different than expected – which can easily be solved with CSS. “True” resizing/trimming of the image file is already a feature request (see FAQ28). Direct link: https://fundry.com/feature/193-auto-resize-avatars-for-buddypress).
>>.…Just logged into your site. As I said, the option wasn’t even enabled. I enabled it, clicked save, and the avatar showed just fine.<<<
OH THAT!!! Thanks – here's something I really think you should make more clear, just constructive advice. I know it's a FAQ but you shouldn't have to invest 20 minutes reading every FAQ and item for a basic install – and you've done a good job of not having to do that. On the back end there is a checkbox that says to show the FB avatar. You should make it very conspicuous that it is in two places — my suggestion is to put that note directly in the back end, e.g. "Use Facebook profile pictures as avatars – remember to also enable the checkbox in the widget."
Again, thanks for the patience and great lightning quick support.
…Well as mentioned, this has never come up before (and I didn’t even have that FAQ until just now – added it in response to you)
Honestly, these are two completely distinct concepts. The option “Use Facebook profile pictures as avatars” does just that – it replaces anywhere you already would have a WP avatar with the Facebook one. It says nothing of whether or not an avatar would be added to the Widget (or anywhere else it didn’t already exist). You can just as well disable the option to replace WP avatars with FB ones but opt to add avatars to a given widget, in which case all avatars (including widgets) will be WP avatars rather than FB ones.
So again:
*The Widget option deals with adding an image to an instance of the Widget.
*The option to replace WP avatars with FB avatars…globally replaces WP avatars with FB avatars.
The only similarity between the two is that they both happen to deal with avatars
In buddypress you can upload your picture to use as an avatar. It stores them here
wp-content\uploads\avatars
The admin avatar (uploaded pic) was in a folder called “1″. This is what dissapeared after it fetched my personal FB avatar. I understand it is not meant to happen but it did and thought Id post an update incase someone else had same issue.
Where exactly do the fetched FB avatars get stored by your plugin?? Somewhere in uploads folder?? I could manually resize large FB avatars as a quick fix for now.
Ah – I didn’t realize you were using Buddypress (because again, you ignored the bold red note above this form…)
The free plugin does not store avatars anywhere; only the premium addon does. I don’t know if you’re a free or premium user, again because you ignored the red note above this form.
Neither the free plugin nor the premium addon ever delete anything*
(*The one exception is if you delete a user for whom the premium addon downloaded and cached an avatar…but this is clearly not your situation)