Facebook OAuth "An error occurred"

I am having problems connecting users to my OAuth Dialog. This worked today, so I suspect it may have something to do with February Breaking Changes . See for yourself the production of WomStreet .

Sandbox mode is disabled, url is set correctly in main settings section of facebook developer page.

I am using a utility for Ruby on Rails, but even manually checking the url looks good.

Any ideas on where to start debugging?

UPDATE 1: There seems to be a bug report on Facebook dedicated to this issue: Link here

+3


source to share


5 answers


looks like facebook, and the developer community is pissed off again by posting changes that affect the main login. i don't see any solution, but try to login here: https://developers.facebook.com/docs/concepts/login/

bug link: https://developers.facebook.com/bugs/207955409343730

EDIT : To fix this problem you need to change the url parameters. change:



app_id to: client_id
next to: redirect_uri

      

so the url you are linking to should look like this:

https://www.facebook.com/dialog/oauth?client_id=something&redirect_uri=something

      

+1


source


EDIT: Solved: I've been doing this for the past 24 hours and I think I have a solution that doubled at least:

1) Make sure you are using the correct URL:



http://www.facebook.com/dialog/oauth?client_id=[APP_ID]&redirect_uri=[YOUR_REDIRECT_URI]&state=[STATE]&scope=[SCOPE]

      

2) Login to facebook, go to developers.facebook.com, click on the "Applications" link at the very top center. Go to each of the apps that are affected. You may notice a red warning in these apps. If you have warnings, they will instruct you to enable the February changes before February 6th. Click Change Application. Click on "Settings"> "Advanced" on the left. Note that there are Enable / Disable inputs for the upcoming Breaking changes, and note that February is no longer specified. Click "Save Changes" on the button without changing anything - this action is obviously quiet. Inclusion of changes in February. Wait a few minutes for the changes to take effect.

+1


source


This same issue is there right now (the time I am posting this answer) on facebook login on Stackoverflow. It could be a bug on the facebook side or as you said the changes need to be made on the client side as stated in https://developers.facebook.com/roadmap/

0


source


FB LOGIN didn't work on stackoverflow, but it works now, so processed the request response and found out that the URL used was changed

The URl we are using and https://graph.facebook.com/oauth/authorize?client_id=

when we changed it to the following url that stackoverflow uses it started working. property.facebook.authorize.url = https://www.facebook.com/dialog/oauth?client_id=

hope this works for you too.

0


source


If you are using Ruby and the omniauth-facebook gem you can try this forked for now using the correct OAuth url.

In Gemfile:

gem 'omniauth-facebook', git: 'git://github.com/luvtechno/omniauth-facebook.git', branch: 'fix_oauth_url'

0


source







All Articles