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

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

    sometimes you need to check your code (the part of redirect)

    $helper = new FacebookRedirectLoginHelper('https://apps.facebook.com/xxx');
    $auth_url = $helper->getLoginUrl(array('email', 'publish_actions'));
    echo "<script>window.top.location.href='".$auth_url."'</script>";
    

    if any changes happens there (for example, the name of your application "https://apps.facebook.com/xxx" in relation the application settings in facebook, you will get the above error

    0 讨论(0)
  • 2020-11-28 06:10

    Try to check at Settings > Advanced. At Valid OAuth redirect URIs, make sure you have a correct domain.

    Hope it works.

    0 讨论(0)
  • 2020-11-28 06:10

    Go to facebook developer dashboard Select settings -> select WEB(for website) -> Add platform Add your site URL.

    This should resolve your issue.

    0 讨论(0)
  • 2020-11-28 06:11

    I solved this issue by specifying correct site URL in my App Settings. It works fine now. You have to specify your website Url such as http://www.xyz.com/

    0 讨论(0)
提交回复
热议问题