Redirecting to authentication dialog - “An error occurred. Please try again later”

前端 未结 30 1932
执念已碎
执念已碎 2020-11-29 04:08

Why does it always happen to me?

This happens after my application verify for user user login and redirect user to the authentication page:

https://w

30条回答
  •  醉梦人生
    2020-11-29 04:26

    According to OAUTH Dialog documentation:

    *redirect_uri: The URL to redirect to after the user clicks a button in the dialog. The URL you specify must be a URL of with the same Base Domain as specified in your app's settings, a Canvas URL of the form https://apps.facebook.com/YOUR_APP_NAMESPACE ...*

    I am constructing oauth links dynamically to ask a user for additional permissions if needed and I realized, that even if you are redirecting to https://apps.facebook.com/YOUR_APP_NAMESPACE you have to have the App Domain and Website settings set in your application administration. I set domain to facebook.com and Website to facebooks root url.

    Now my oauth dialog link works fine - even in sandbox mode.

提交回复
热议问题