由于 facebook 的 API 密钥和 API ID 组合而出现 191 错误
早在 6 月份,Facebook 就曾在应用程序设置页面上显示一组密钥:API 密钥和 API ID。这些彼此不同。当时,我和我的伙伴用PHP编写了一个Facebook应用程序,通过两个密钥来实体化facebook类。我们将密钥保存到配置文件中。
然而,这两个键现在是同一个,因此,我收到错误 191。自 6 月以来,我们没有更改代码或设置。虽然这不会影响我们当前的应用程序(其中 API 密钥是唯一的),但它确实阻止我们使用现有代码库创建新应用程序。
我们可以做什么来解决这个问题?
Back in June, Facebook used to display a set of keys on the application settings page: the API key and the API ID. These were different than each other. At that time, my partner and I wrote a Facebook app in PHP, passing the two keys to substantiated the facebook class. We saved the keys to a config file.
However, these two keys are now one and the same, and as a result, I'm getting error 191. We have not changed the code or settings since June. While doesn't this affect our current applications, where the API key is unique, it does prevent us from making new applications using the existing code base.
What can we do to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
API 中使用 API 密钥的任何位置也可以使用 App ID,它们在后端代码中的处理方式相同。
错误 191 是有关在登录过程中尝试将用户重定向到不属于您的应用程序的 URL 的错误,因此请检查在将用户发送到登录/授权时在“next”或“redirect_uri”参数中设置的 URL对话
Anywhere in the API which used the API key can also use the App ID, they're treated identically in the backend code.
Error 191 is an error about trying to redirect the user during the login process to a URL not owned by your application so check what URL you're setting in the 'next' or 'redirect_uri' parameter when sending the user to the login / authorisation dialog