How to set up RPX widget and facebook app to authenticate with rpx_now?

Using a sample app for rpx_now

gem ( http://github.com/grosser/rpx_now_example ) on localhost: 3000, I successfully logged in via Google accounts, myOpenID, Yahoo, but can't do it via Facebook.

In RPX app / widget settings I have set the key and secret of my facebook-app. In my facebook app settings the connection url myappname.rpxnow.com

. But when I try to connect, I don't even see the facebook login page, just a few redirects and I get back to my localhost with the following exception http://gist.github.com/386520 .

Before I successfully connected with the oauth2

gem, however, not getting user data - just authentication. This time, I only set the key / secret and localhost

as my connection url. Currently I don't even ask for email etc. but still the same problem.

Could this happen because it rpx_now

cannot get the requested user data from facebook? Or is it a facebook key / secret issue? Maybe I need to provide additional settings for my facebook app?

RPXNow::ApiError in UsersController#create

Got error: Invalid parameter: token (code: 1), HTTP status: 200
RAILS_ROOT: /home/Andrei/rpx_now_example

Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/rpx_now-0.6.20/lib/rpx_now/api.rb:71:in `parse_response'
/usr/lib/ruby/gems/1.8/gems/rpx_now-0.6.20/lib/rpx_now/api.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/rpx_now-0.6.20/lib/rpx_now.rb:23:in `user_data'
/home/Andrei/rpx_now_example/app/controllers/users_controller.rb:16:in `create'
Request

Parameters:

None
Show session dump

Response

Headers:

{"Content-Type"=>"",
 "Cache-Control"=>"no-cache"}

      

+2


a source to share


1 answer


To fix this problem, you need to go to the Facebook app, click Change Settings, select Migrations in the left column, and switch New Data Permissions to disabled. There is a comment next to this option: Turn on new data permissions and a new permission dialog. (Migration ends: June 1, 2010)



So I think the rpx_now

gem needs to be updated to work with the new interface.

+1


a source







All Articles