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

前端 未结 16 2204
广开言路
广开言路 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:08

    Michael Blackburn's answer helped me resolve my issue, but I want to give more detail on my fix.

    I have a php app that posts to a user's FB page.

    I own two domains:

    • http://app.my-web-app.com
    • http://app.mywebapp.com (no hyphen)

    I built my site off the first domain because it read better IMHO (at least it did at the time).

    Some users typoed the url so I bought the second one with no dashes for that reason.

    So, one of my users was having the "Given URL" error.

    Turns out he was going to http://app.mywebapp.com and the rest of them were going to http://app.my-web-app.com

    I fixed everyone by adding all possible redirect URIs: enter image description here

    Granted, there are 100 better ways to implement this, but here is the workaround for now.

提交回复
热议问题