4
votes

I try move canvas-app to v2.1 api. So when an user are authorizing to the app I send

[protocol://]graph.facebook.com/v2.1/oauth/authorize?client_id=XXXX&scope=&redirect_uri=XXXXX

and got redirect to

[protoco://]www.facebook.com/dialog/oauth?client_id=XXXX&scope=&redirect_uri=XXXXX

which is dialog from API version 1

I expect to get dialog API version 2.1

[protocol://]www.facebook.com/v2.1/dialog/oauth?client_id=XXXX&scope=&redirect_uri=XXXXX

how can I reach it?

2
Did you find a solution to this? I'm getting the same problem now.Jake
I've filed a Facebook bug reportJake
Is that /authorize endpoint still supported? I thought /dialog/oauth was the correct path now?Igy

2 Answers

2
votes

We were stumped on this and then we checked our App Settings, under Migrations, and this problem went away when we turned on "Use Graph API v2.0 by default". Hope that helps.

enter image description here

1
votes

We encountered the same issue. We fixed it by just linking directly to the new URL:

https://www.facebook.com/v2.1/dialog/oauth?client_id=XXXX&scope=&redirect_uri=XXXXX