我正在尝试将我的项目与Facebook整合.我一开始就采取了婴儿步骤,只是尝试登录,获得Facebook会话,并获得一些用户数据.我正在本地开发它,所以我的Facebook应用程序设置是:
site URL: http://127.0.0.1:8888/mySite/
Run Code Online (Sandbox Code Playgroud)
画布URL与上面相同.我没有指定网站域名.
但是,当我点击登录按钮时,我收到一个错误:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
Run Code Online (Sandbox Code Playgroud)
目前我还没有编写任何服务器端代码来处理重定向等.我所做的就是根据Facebook网站上的教程添加JavaScript SDK .
我做错了什么?这显然与我的Facebook应用程序设置有关,但我看不到什么!
尝试使用OAuth对Facebook进行身份验证时出现以下错误:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException"
}
}
Run Code Online (Sandbox Code Playgroud)
我的网址看起来像这样:
https://graph.facebook.com/oauth/authorize?client_id=283993944973616&redirect_uri=http://dennys-m.appspot.com/fb_login/&scope=publish_stream,email&display=popup
Run Code Online (Sandbox Code Playgroud)
我知道有很多其他帖子有这个问题,但我看不出是什么会让我的网址无效.有什么想法我收到这个错误?