Larest
Larest

Reputation: 386

facebook /v2.1/oauth/authorize do not redirect to /v2.1/dialog/oauth

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?

Upvotes: 4

Views: 19388

Answers (2)

Kcoder
Kcoder

Reputation: 3480

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

Upvotes: 1

youknowjack
youknowjack

Reputation: 51

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

Upvotes: 2

Related Questions