Self Help/Plugins and modules/Wordpress Plugin Q&A

Answered

Facebook login not working

FYPHouston
asked this on February 03, 2011 13:18

Received this error when setting up facebook app:

We were unable to set the Connect URL in your Facebook application. In your Facebook application settings, please set the Connect URL to https://SITENAME.rpxnow.com/

I couldn't find a Connect URL field so I set it as the site URL, which caused Facebook to set the Canvas and Secure Canvas URLs to https://SITENAME.rpxnow.com/facebook/callback and https://SITENAME.rpxnow.com/ respectively.

However, logging in redirects me to the WordPress login page with "Register For This Site".

Anyone have any ideas?

Thanks!

 

Comments latest first

User photo
Forest Basford
Janrain

@ Nolan:  Please enter the Connect URL settings as the Canvas URL and add a / to the end.

 

Locking this thread for off topic content.

October 07, 2011 07:43
User photo
Nolan Dubeau
Basic

Hello, 

I am having the same issue.  I'm not using the wordpress plugin,  I'm just trying to configure my Facebook app in the Janrain application setup.  My facebook app does not have a Connect URL.  Please advise how to resolve this.  Thank you.

October 07, 2011 06:48
User photo
Alexandra Alexandrova
Basic

i cant log in with my facebook acc. every time when i try come this:

{
"error": {
"type": "OAuthException",
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration."
}
}

yesterday i have play and today when i try to log in come this...... pls help

March 30, 2011 04:02
User photo
Don Dodds
Basic

Forest, I'm almost there. I've done everything that you said. I am using the exact code and dumped it into rpx.php. The challenge is that I am not not able to login but I am redirected etc. Please help me bring this to a close.

March 07, 2011 22:41
User photo
Don Dodds
Basic

Forest ok ... take a look here: http://www.dondodds.com/rpx.php ... All of this works now I need to redirect from here to the real login page. How is that done?

March 05, 2011 23:32
User photo
Don Dodds
Basic

Forest ... that does not work either. 

March 03, 2011 14:30
User photo
Forest Basford
Janrain

The code in the plugin is the code you would need to write to use the widget with Wordpress.

Try adding the plugin action to the end of your token URL.

Add the following to the end of the current tokenURL for your widget.

%3Faction%3Drpx_token 

March 03, 2011 10:00
User photo
Don Dodds
Basic

I am using the plugin as a back up but I prefer to use the Widget. The plug in allows me to log in with google and yahoo but not facebook. The widget doesn't allow me to do anything. Facebook's message for the plugin returns: "We were temporarily unable to sign you in. We're really sorry."

March 03, 2011 09:54
User photo
Forest Basford
Janrain

Don,

Are you using the Janrain Engage Wordpress Plugin?

March 03, 2011 09:44
User photo
Don Dodds
Basic

The domain(s) are already there. I think this is where I get stuck:

  • 3) Parse the response and extract the identifier. Here's a sample JSON response: 

    {
      'stat': 'ok',
      'profile': {
        'identifier': 'http://user.myopenid.com/',
        'email': 'user@example.com',
        'preferredUsername': 'Joe User'
       }
    }
  • 4) Use the identifier as the unique key to sign the user in to your website, and then redirect the user to the appropriate location.
March 03, 2011 09:42
User photo
Forest Basford
Janrain

Go to rpxnow.com and add your domain to the Token URL Domains in Deployment -> Domain & Settings

March 03, 2011 09:27
User photo
Don Dodds
Basic

Ok I redid everything and have the same challenge:

Logging into google gives me this

Invalid argument: token_url domain not in whitelist

 

Logging into Facebook gives me this

The token URL or xdReceiver has not been whitelisted

March 02, 2011 10:31
User photo
Don Dodds
Basic

Ok I have that. I've done everything and it is still failing. Let me restart everything and try again.

March 02, 2011 08:55
User photo
Forest Basford
Janrain
March 02, 2011 08:47
User photo
Don Dodds
Basic

Thank you Forest. Do you have a link to the plugin?

March 02, 2011 08:40
User photo
Forest Basford
Janrain

You can use the plugin version 1.0.4 without the wp-login.php so you could block access to this URL.

There is a WP widget to add the sign-in buttons to your site sidebar.

If you are getting any error on sign in you need to check the page source and verify that the rpx css, js, and iframe are present.

Your WP template must support enqueued scripts, css, and the following hooks:

wp_head

wp_footer

wp_print_styles

wp_print_scripts

shutdown

admin_menu

admin_footer

admin_print_styles

show_user_profile

March 02, 2011 08:34
User photo
Don Dodds
Basic

Yes but it says a token is missing. What I'd like to know as well is .... Can I use Engage completely and get rid of the wp login?

March 02, 2011 08:13
User photo
Forest Basford
Janrain

Do you see the Engage buttons on your WP Register screen?

If not you may not have enabled the Automatic Registration option for the plugin in Settings -> Janrain Engage.

March 02, 2011 08:09
User photo
Don Dodds
Basic

I am having the same problem

March 02, 2011 05:43
Topic is closed for comments