Can't Load URL: The domain of this URL isn't included in the app's domains

后端 未结 4 502
盖世英雄少女心
盖世英雄少女心 2020-12-04 19:39

I\'m trying to get access token from user

string response_script = \"

        
相关标签:
4条回答
  • 2020-12-04 19:49

    Adding my localhost on Valid OAuth redirect URIs at https://developers.facebook.com/apps/YOUR_APP_ID/fb-login/ solved the problem!

    And pay attention for one detail here:

    In this case http://localhost:3000 is not the same of http://0.0.0.0:3000 or http://127.0.0.1:3000

    Make sure you are using exactly the running url of you sandbox server. I spend some time to discover that...

    0 讨论(0)
  • 2020-12-04 19:54

    Like the other answer says, in the left hand side select Products and add product. Then select Facbook Login.

    I then added http://localhost:3000/ to the field 'Valid OAuth redirect URIs', and then everything worked.

    0 讨论(0)
  • 2020-12-04 20:07

    I had the same problem, and it came from a wrong client_id / Facebook App ID.

    Did you switch your Facebook app to "public" or "online ? When you do so, Facebook creates a new app with a new App ID.

    You can compare the "client_id" parameter value in the url with the one in your Facebook dashboard.

    Also Make sure your app is public. Click on + Add product Now go to products => Facebook Login Now do the following:

    Valid OAuth redirect URIs : example.com/

    0 讨论(0)
  • 2020-12-04 20:10

    I had the same issue as you, I figured it out. Facebook now roles some features as plugins. In the left hand side select Products and add product. Then select Facbook Login. Pretty straight forward from there, you'll see all the Oauth options show up.

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