我是 Facebook 开发人员的新手。我想使用 Facebook OAuth 创建 Mac OSX 应用程序。但我找不到任何适用于 Mac OSX 的 Facebook SDK。那么是否可以使用Facebook iOS SDK来开发Mac OSX应用程序呢?如果可以我该怎么做?如果没有,是否有其他解决方案可以使用 Facebook 创建 Mac OSX 应用程序..?
谢谢
最佳答案
在 Authentication指南指出(页面的最后一部分):
Windows, OS X and Linux native apps
Our OAuth 2.0 implementation does not include explicit support for application built for desktop operating systems. However, if your 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 App Dashboard, we provide a specific URL you can use with desktop apps: https://www.facebook.com/connect/login_success.html.
使用该方法对用户进行身份验证后,您将获得一个用户访问 token ,然后您可以简单地向图形 API 发出 http 请求。
关于xcode - 是否可以使用 Facebook iOS sdk 来开发 Mac OSX 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10861828/