Facebook One or more of the given URLs is not allowed by the App's settings

后端 未结 12 1596
面向向阳花
面向向阳花 2020-12-14 21:23

Result in console:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App\'s settings. I

相关标签:
12条回答
  • 2020-12-14 21:40

    Yes This is The common problem of facebook api. Don't use www before url. It will solve the problem.

    0 讨论(0)
  • 2020-12-14 21:41

    This can also happen when the redirect_uri submitted with the https://www.facebook.com/dialog/oauth request is not present in the list of Valid OAuth redirect URIs under:

    • Settings >> Advanced >> Security

    After much trial and error, when I added the redirect_uri that I was using (https://www.facebook.com/connect/login_success.html in my case), I suddenly got to the step past this error.

    0 讨论(0)
  • 2020-12-14 21:48

    after putting site url to begin with http:// it resolve my issue. Now my Site URL looks like this: http://my_blog_name.blogspot.com/p/publishing.html

    0 讨论(0)
  • 2020-12-14 21:51

    Facebook App Settings

    Although answered several times with similar info, this is my experience FYI

    • Testing on localhost - I wondered if that might be the problem, but nope.
    • app_id and redirect_uri included.
    • URLs properly encoded.

    So why this error?

    See Facebook Community Help as I did, for the important missing part of the puzzle.

    That is:

    <a href="https://www.facebook.com/dialog/share?
        app_id=1234567890
        &display=page
    
        &href=http%3A%2F%2Fexample.org <-- This
        &redirect_uri=http%3A%2F%2Fexample.org" <-- and This
    
    target="_overTheRainbow">Tell the world about this awesomeness!</a>
    

    Must match the reference URLs submitted to Facebook for the app with app_id.

    0 讨论(0)
  • 2020-12-14 21:53

    Facebook doesn't care what actual IP address your server is located at - but it will check that the domain name of the referring page is the same as the domain you registered with facebook.The problem is that whatever url you are currently hosting your app is not setup in your Application configuration. Go to your app settings and ensure the urls are matching.

    0 讨论(0)
  • 2020-12-14 21:53

    Go to settings and and then Advanced tab. At the bottom "Embedded browser OAuth Login" enable this option. then your problem is resolved.

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