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

China☆狼群 提交于 2019-12-22 08:17:11

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/26280249/facebook-v2-1-oauth-authorize-do-not-redirect-to-v2-1-dialog-oauth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!