心安处即吾乡!
分类: LINUX
2014-04-17 20:02:01
Facebook API Error Report:
Question:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
Answer:
1.login https://developers.facebook.com
2.点击上边菜单栏的Apps
3.点击右上角Edit App
4.找到
Select how your app integrates with Facebook
点击编辑第一项website
输入Site URL为你的本地项目访问地址(apache配置中的虚拟主机段的server name,例如,,注意不要带端口号的,因为facebookAPI严格限制url格式,最后修改/etc/hosts中,添加一条记录127.0.0.1 )
5.如果以上进行完后还报相关错误,则点击左侧Settings下的Advanced选项,找到MIgrations下第一条
Remove Deprecate APIs,选中Disabled即可。此项设置移除过时的facebookAPI