我的代码:
https://graph.facebook.com/oauth/authorize?client_id=174375686054021&redirect_uri=http://centshark.com/app/fblogin.aspx&scope=offline_access,publish_stream

使用 Facebook 登录的网站:http://centshark.com

错误:{"error":{"message":"Invalid redirect_uri: 应用程序配置不允许给定的 URL。","type":"OAuthException","code":191}}

最佳答案

在 facebook 应用程序页面中,转到基本选项卡。找到“使用 Facebook 登录的网站”选项。

你会发现站点 URL:在那里输入完整的 URL(例如 http://Mywebsite.com/MyLogin.aspx )。这是您可以在调用中使用的 URL,例如 If the APP ID is 123456789

https://graph.facebook.com/oauth/authorize?client_id=123456789&redirect_uri=http://Mywebsite/MyLogin.aspx&scope=publish_actions

关于facebook - 无效的 redirect_uri : Given URL is not allowed by the Application configuration,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16438579/

10-13 04:08