iphone - iOS 发布到 Facebook 应用墙

标签 iphone ios facebook

我想知道是否可以发布到为在 iOS 中使用 Facebook 而创建的 Facebook 应用程序页面的墙上。我不想使用用户登录来发布到他们自己的墙上,而是想发布到应用程序页面,其中包含开放游戏的更新。这可能吗?

最佳答案

是的,这是可能的。来自 http://developers.facebook.com/docs/reference/api/application/ :

To perform the following operations as an Application Page, and not the current user, you must use the Application's Page access token, not the user access token commonly used for modifying Graph API objects nor the Application access token. This access token can be retrieved by issuing an HTTP GET to /USER_ID/accounts with the manage_pages permission. This will return a list of Pages (including Application profile pages) to which the user has administrative access, along with an access_token for each Page.

You can create a link, post or status message by issuing an HTTP POST request to the APP_ID/feed connection. To see more details please see links, posts, and status messages documentation.

To impersonate the Application when posting to the wall (i.e. post as the Application, and not the current user), you must use an Application Page access_token with the manage_pages and publish_stream permissions, as described under Application Access Tokens above.

因此,您首先必须向 API 请求应用程序页面访问 token ,然后使用此访问 token 在墙上发帖。 Facebook iOS SDK 有助于构建上述文档中提到的图形 API 调用。

关于iphone - iOS 发布到 Facebook 应用墙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7495472/

相关文章:

iphone - 我如何从一个字符串中取出多个 url?

iphone - AVAudioPlayer 有问题吗?制造延迟

ios - subview 重叠的问题

ios - 通用 iOS 应用程序文件管理

iphone - 如果连接状态发生变化,我如何获得通知?

ios - 在 iOS 上创建 GridView

android - 如果在设备而非服务器上生成,UUID4 有多独特?

ios - Facebook。如何获取我的应用程序的所有用户列表?

ios - 应用程序委托(delegate)中用于 Facebook 和 Twitter 的 OpenURL?

javascript - Facebook 登录 - JavaScript 或 PHP SDK