Given URL is not allowed by the Application configuration

前端 未结 15 1219
北恋
北恋 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:15

    Do the above work of adding the site and then the url. I think the layout of facebook has changed little bit so also do the below things. - Go to developers.facebook.com -> your app - Go to Settings->Advanced. - Under the Security->Valid OAuth redirect URIs, insert all the uri's your app is supposed to redirect to. For example ( http://localhost:1443/cas/login, https://localhost:2443/cas/login, http://rajanpupa.com/cas/login etc) - That should do it.

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

    The other answers here are excellent and accurate. In the interest of adding to the list of things to try:

    Double and triple-check that your app is using the right application ID and secret key. In my case, after trying many other things, I checked the application ID and secret key and found that I was using our production settings on our development system. Doh!

    Using the correct application ID and secret key fixed the problem.

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

    I ran into this with the IBM BlueMix SSO service and had to use the BlueMix provided redirect URL as my "site" URL instead of my actually web application site URL to fix it. Once I made that change the problem went away.

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

    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-11-29 03:21

    My Problem Solved by

    public static final String REDIRECT_URI = "http://google.com"; 
    

    it will redirect to Url after ur Login into Facebook.and also you have to reach

    url : https://developers.facebook.com -> My App -> (Select your app) ->Settings ->Advanced Setting -> Valid OAuth redirect URIs : "http://google.com".

    In the place of "http://google.com" you can place ur respective project Url.so,that it will redirect to your Page.

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

    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.

    Updated

    Steps:

    1. Go to 'Basic' settings for your app
    2. Select 'Add Platform'
    3. Select 'Website'
    4. Put your website URL under 'Site URL'

    enter image description here

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