Given URL is not allowed by the Application configuration Facebook application error

前端 未结 16 2205
广开言路
广开言路 2020-11-28 05:34

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App\'s settings. It must match the Website URL or Canvas URL,

16条回答
  •  被撕碎了的回忆
    2020-11-28 06:09

    This is a basic breakdown for slow people like me, and I didn't see this mentioned before.

    The "redirect uri" isn't the place where you're redirecting to, but where it's coming from.

    Say you have your app at http://myFBapp.com listening to /auth/facebook, and after they log in, redirecting them to /UserLoginHooray. The "Valid OAuth redirect URIs" should read http://myFBapp.com/auth/facebook, not http://myFBapp/UserLoginHooray.

    Explanation: HTTP Requests that have been redirected (302) include the original address in the header, so Facebook is merely putting a very basic layer of security on the request.

提交回复
热议问题