Title: [Plugin: Facebook Connect] Bug
Last modified: August 19, 2016

---

# [Plugin: Facebook Connect] Bug

 *  [rwestergren05](https://wordpress.org/support/users/rwestergren05/)
 * (@rwestergren05)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/)
 * Extremely difficult to submit bugs around here, despite it being designed to 
   be “simple.” Could not find your listing in trac.
 * Nevertheless, line 78 of your plugin should be
    `if ( !is_user_logged_in() ||!
   $cookie) { ?>`
 * as users who ARE authenticated, but not registered should still be provided the
   link to login and allow FB access.
 * Overall, fantastic plugin. Thanks for the contribution!
 * [http://wordpress.org/extend/plugins/wp-facebook-connect/](http://wordpress.org/extend/plugins/wp-facebook-connect/)

Viewing 15 replies - 1 through 15 (of 75 total)

1 [2](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/2/?output_format=md)

 *  [jelpesao](https://wordpress.org/support/users/jelpesao/)
 * (@jelpesao)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1818971)
 * I want to try the plugin but got a few errors for example once activated and 
   if I am already register it tells me it cannot find my email. The line you change
   is it the one that says:
    <span class=”fb_button_text”> Change it to: if ( !is_user_logged_in()
   || !$cookie) { ?>
 * Sorry not good at all in coding.
 *  Thread Starter [rwestergren05](https://wordpress.org/support/users/rwestergren05/)
 * (@rwestergren05)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819063)
 * You may have set your Facebook privacy settings in a way that doesn’t share your
   email account.
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819163)
 * I’ve just uploaded version 1.1 to svn. Should fix this issue, and also lots of
   other improvements. Please upgrade and let me know what do you think about new
   version. Should be much more robust.
 *  [jelpesao](https://wordpress.org/support/users/jelpesao/)
 * (@jelpesao)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819172)
 * Looks like the issue is if I am already authenticated to facebook I get the following
   error “Error: failed to get your email from Facebook!” I went to facebook and
   logout and I was able to get back into my website and then click on connect. 
   version 1.1 gave me the same error.
 *  [Felzor](https://wordpress.org/support/users/felzor/)
 * (@felzor)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819177)
 * Nice. I just installed this plug-in today for my buddy press site. I was able
   to connect with my Facebook email and password and it even created a new user
   in the backend using my Facebook name. Only problem is the avatar didn’t sync
   with Facebook. It would be great if the Avatar (and other info like location 
   and birthday) synced. Is this a theme related issue, or just not coded into the
   plug-in? Thanks for this great plug-in!
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819178)
 * So far its very vanilla and will only get Name and Last name from FB. There are
   hooks to add more information if you are a programmer. If not – you can watch
   this plugin and update when new version is available. We will extend it for BuddyPress
   to include all that additional information. I think this will happen some time
   in Jan 2011.
 *  [donatien](https://wordpress.org/support/users/donatien/)
 * (@donatien)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819193)
 * Seems to work here – except for an annoying thing – after a user logged in – 
   the page went blank. This is due to wp_get_referer() returning false. Changed
   the redirect from assuming wp_get_referer() returns something to:
 *     ```
       if (wp_get_referer()) {
       	wp_redirect(wp_get_referer());
       } else {
       	wp_redirect( $_SERVER['REQUEST_URI'] );
       }
       ```
   
 * That seemed to fix it for me.
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819194)
 * Thanks, donatien, will implement that to next version!
 *  [donatien](https://wordpress.org/support/users/donatien/)
 * (@donatien)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819195)
 * Good stuff. I tried to find a better function for fetching the current page, 
   but the best candidate seemed to be get_permalink(), but that only works for 
   posts. In a note named “Link to current page” on [http://codex.wordpress.org/Function_Reference/get_permalink](http://codex.wordpress.org/Function_Reference/get_permalink)
   they use the same code, so it seems right.
 *  [donatien](https://wordpress.org/support/users/donatien/)
 * (@donatien)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819196)
 * Another thing, please remove the style declaration in the widget and replace 
   with a class or id for styling. The text-align: center; just about drove me nuts
   🙂
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819197)
 * Sorry for that 🙂 Will be removed in next tag.
 *  [markhuot](https://wordpress.org/support/users/markhuot/)
 * (@markhuot)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819198)
 * You mention grabbing it from SVN, is that public and something you can share?
   I have a version that seems to work great if you’re already logged in but fails
   if you’re not. If you’re not logged in it just refreshes the login form (in the
   popup window).
 * Thanks!
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819199)
 * Newest development version available at [http://plugins.svn.wordpress.org/wp-facebook-connect/trunk/](http://plugins.svn.wordpress.org/wp-facebook-connect/trunk/)
   
   Seems more like fb issue. Look for any script errors.
 *  [markhuot](https://wordpress.org/support/users/markhuot/)
 * (@markhuot)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819202)
 * Thanks Valentinas, I updated just to be safe, but it seems to have been an issue
   with Safari’s Private Browsing refusing to reset/release/create cookies.
 *  Plugin Author [valentinas](https://wordpress.org/support/users/valentinas/)
 * (@valentinas)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/#post-1819204)
 * Just tested – works for me. To make it clear: cookies are required for FB connect
   to work (not only for this plugin, but for fb connect API in general). So if 
   cookies are disabled facebook connect will not work.
 * By the way, are you on Mac, Windows or Linux? Im on Windows, so things can be
   a little different on other OS.

Viewing 15 replies - 1 through 15 (of 75 total)

1 [2](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/2/?output_format=md)

The topic ‘[Plugin: Facebook Connect] Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-facebook-connect.svg)
 * [Facebook Connect](https://wordpress.org/plugins/wp-facebook-connect/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-facebook-connect/reviews/)

 * 75 replies
 * 13 participants
 * Last reply from: [Rico Michel](https://wordpress.org/support/users/elricoshow/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-facebook-connect-bug/page/5/#post-1819372)
 * Status: not resolved