Given URL is not allowed by the Application configuration

前端 未结 15 1218
北恋
北恋 2020-11-29 02:50

I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines

appId      : \'370675846382420\', // App ID
channelUrl          


        
相关标签:
15条回答
  • 2020-11-29 03:07

    I'm using the Facebook Canvas platform (Unity WebGL) and I don't needed to add the Website platform. The only thing I did was add my website root url in:

    • Product
      • Facebook Login
        • Valid OAuth redirect URIs

    0 讨论(0)
  • 2020-11-29 03:09

    Things have evolved in Facebooks approach, I now realised that you need to "Add Product" to your App: facebook login. make sure oauth & web auth on add my own site url to ""Valid Auth redirect URI" (and removed the default https://www.facebook.com/connect/login_success.html which his in the

    Without this I get the URL Blocked error.

    0 讨论(0)
  • 2020-11-29 03:10

    Go to https://developers.facebook.com/apps and open the app you have created. open setting tab and add platform and insert site url where you want to share facebook button .Its done.

    0 讨论(0)
  • 2020-11-29 03:10

    For me it was the "Single Sign On" (can be seen at the bottome of the screenshot in phwd's answer) setting that was turned off.

    0 讨论(0)
  • 2020-11-29 03:14

    I was getting this error when trying to run my test web page directly from "file:///C:/webtests/myfile.htm". To fix it, I didn't have to make any changes to my App Settings. Instead, I just had to host my HTML file on an actual server and then hit it like: "http://localhost/myfile.htm".

    Hope that helps someone.

    0 讨论(0)
  • 2020-11-29 03:15

    The above answers are right, but you have to make sure you input right URL.

    You have to go to: https://developers.facebook.com/apps

    1. Select your app
    2. Click settings
    3. Enter contact email (for publishing)
    4. Click on +add platform
    5. Add your platform (probably WEB)
    6. Enter site URL

    You have two choices to enter: http://www.example.com or http://example.com

    Your app will work only with one of them. In order to make sure your visitors will use your desired url, use .htaccess on your domain.

    Here's good tutorial on that: http://eppand.com/redirect-www-to-non-www-with-htaccess-file/

    Enjoy!

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