WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Login form button does not work, but profile page connect button d (1 post)

  1. markmont
    Member
    Posted 3 years ago #

    When a user without a WP account presses "Connect to Facebook" on the login page (wp-admin/wp-login.php), they wind up back on the same version of the page (login, not register), not logged in. My impression is that they should wind up on the register version of the login page, with a username and email address filled in for them, after which they'll be able to press the "Register" button.

    However, a user with a WP account can use the "Connect this WordPress account to Facebook" button on their Profile page, and this works fine.

    I'm running Simple Facebook Connect revision 377598 from http://plugins.svn.wordpress.org/simple-facebook-connect/trunk/ due to suggestions made in several other topics.

    I've disabled all plugins except for:
    * Simple Facebook Connect - Base
    * SFC - Login
    * SFC - Register
    * Permalink Editor

    I've also disabled HTTPS and set FORCE_ADMIN_SSL to false; this has not helped.

    By adding debugging statements, I've determined that sfc-login.php:sfc_login_check() is getting an empty value for $fbuid, but it is not clear to me why. The sequence of HTTP requests when the user presses the "Connect with Facebook" button on the login page is:

    http://www.facebook.com/login.php?...
    http://myblog/wp3/?xd_receiver=1&fb_login&fname=_opener&...
    (a session key, secret, and signature are passed back to WP)
    http://api.connect.facebook.com/restserver.php?method=users.hasAppPermission
    http://myblog/wp3/?xd_receiver=1#{"id":0,...,
    http://myblog/wp3/wp-admin/
    http://myblog/wp3/wp-login.php?redirect_to=http%3A%2F%2Ffmyblog%2Fwp3%2Fwp-admin%2F&reauth=1
    http://www.facebook.com/extern/login_status.php?api_key=(omitted)&extern=0&channel=http%3A%2F%2Fmyblog%2Fwp3%2F%3Fxd_receiver%3D1&locale=en_US
    http://myblog/wp3/?xd_receiver=1#{"id":0,"sc":"http://www.facebook.com/xd_receiver_v0.4.php","sf":"loginStatus","sr":2,"h":"loginServer","sid":"0.233","t":0}[0,"loginStatus","InitLogin",{"baseDomain":"myblog","connectState":2,"perms":null,"publicSessionData":null,"session":null,"settings":{"inFacebook":false,"locale":"en_US"},"https":false},false]

    I've replaced my blog's fully-qualified domain name with "myblog" everywhere above and also omitted the api_key.

    There are no errors that are obvious to me in the requests and responses, and nothing in the output of WP_DEBUG (which I'm logging to a file) except for a number of "Undefined index: HTTPS in /www/wp3/wordpress/wp-content/plugins/simple-facebook-connect/sfc.php on line 39", which is just a harmless warning (plus an identical warning on line 209 of sfc-login.php).

    I've tried this with Firefox 3.6.16, Safari 5.0.5, and Opera 11.10, all under MacOS 10.6.7; I get the same results with all browsers.

    Any ideas?

    http://wordpress.org/extend/plugins/simple-facebook-connect/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic