Reputation: 159
I'm trying to upgrade our app to use the newest OAuth 2.0 Javascript code. In my app settings under "Migrations" I have everything enabled. (OAuth Migration, Upgrade to Requests 2.0, etc)
After calling FB.init with: oauth: true.
Then calling FB.getLoginStatus (same for FB.login) and checking my response object I have a response.session but not a response.authResponse? Anyone know of any settings I could have missed or what would cause the oauth FB calls not to return the authResponse like the documentation states?
response.status is there, but not response.authResponse.
Upvotes: 1
Views: 2442
Reputation: 3251
As @Eddy Chan suggests in his comment, it sounds like the JS SDK isn't actually being instructed to use the new OAuth flow, probably due to a misspelling of the oauth: true
parameter.
Upvotes: 0
Reputation: 1161
it sounds like to me there is problem in your upgraded code. To isolate the problem, create a new fb app, then use your upgraded code and see what happens. For the app, simply set the canvas url / site url. For all those "migration settings", just takes the default value.
With this, you can be sure that this is nothing caused by misconfigured of FB settings.
and if you get response.authResponse, then you can compare the current fb settings between these 2 fb apps.
Upvotes: 1