我正在开发一个将与 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/