Facebook API - 桌面/ native 应用程序的重定向 URL 应该是什么?

标签 facebook

我正在开发一个将与 FB 交互的桌面应用程序。 FB 坚持要求您提供站点 URL。因为这是一个桌面应用程序,所以这没有什么意义。我将站点 url 设置为“localhost”。

当我在 url 字符串中放入“localhost”时,我只是收到以下错误

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri isn't an absolute URI. Check RFC 3986.

这看起来是一个很常见的错误,但我没有看到桌面应用程序应如何处理此站点 url 要求的任何示例。

有人可以帮帮我吗?

谢谢

最佳答案

付费阅读文档到最后:)

Our OAuth 2.0 implementation does not include explicit desktop app support. However, if your desktop app can embed a web browser (most desktop frameworks such as .NET, AIR and Cocoa support embedding browsers), you can use the client-side flow with one modification: a specific redirect_uri. Rather than requiring desktop apps to host a web server and populate the Site URL in the Developer App, we provide a specific URL you can use with desktop apps: https://www.facebook.com/connect/login_success.html.

关于Facebook API - 桌面/ native 应用程序的重定向 URL 应该是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7266064/

相关文章:

java - 应用程序无法启动 - 无法找到所需类型的 bean

javascript - 为什么 Facebook JavaScript 身份验证不能在特定计算机上运行?

facebook - 无法创建任何应用程序请求

c# - 我可以控制反序列化 JSON 字符串时使用的子类型吗?

facebook - 替换旧的 GetAppUsers 调用以查看使用我的应用程序的用户的 friend ?

facebook - 从页面访问 "Page Tab Edit URL"

jquery - Facebook 喜欢 iframe 减慢页面加载速度

swift 3 : Share Button of Facebook SDK is Disabled

ios - 如何获取 Facebook 和 Twitter 的 appID?

facebook - 如何在我启动新网站之前估计一个不是我自己创建的旧网站的现状?