ios - Facebook IOS Sdk 查找所有好友 ID

标签 ios facebook facebook-graph-api

我正在寻找一个 tableview,它允许您选择一个 facebook friend ,并能够稍后向他的墙上发送消息。问题是我试过/me/friends 但它只返回使用相同应用程序的 friend ......然后它并不是很有用。

我也试过/me/taggable_friends 但它返回一个 id 用于标记 friend 并且不能用于发送消息...

我没有尝试的最后一个是/me/invitable_friends,因为它不是游戏...但我猜它也只使用 id 来邀请...

那么有没有办法获取 facebook 所有好友的列表并获取那里的 id?

谢谢!

最佳答案

这不再受支持。似乎没有一种简单的方法来获取用户的所有 friend 。您可以使用 /user/invitablefriends,但这有一大堆注意事项。来自文档:

A list of friends that can be invited to install a Facebook game.

The Invitable Friends API is only available to apps classified as Games, which also have a Canvas presence. This API is not available in v1.0. It may be called by mobile games as long as they also have a Canvas presence.

The Invitable Friends API is only available to apps classified as Games, which also have a Canvas presence. This API is not available in v1.0. It may be called by mobile games as long as they also have a Canvas presence. Since Graph API v2.0, /me/friends returns a person's friends who also use the app. You may use the Requests Dialog to invite people to play a game. However, if you want to build a custom multi-friend selector within your game, you need to use call /me/invitable_friends which returns a ranked list of a person's friends who do not play the game, along with a token which can be passed to the Request Dialog in order to invite them. Read our guide on using the Invitable Friends API.

此外,无法再通过 Facebook SDK 向其他用户的墙上发帖。您可以在自己的墙上发帖,也可以标记其他用户,但不能再直接在他们的墙上发帖。

关于ios - Facebook IOS Sdk 查找所有好友 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23832842/

相关文章:

iphone - 是否有一个很好的库来替代 UIAlertView

ios - 滚动时 TableView 滞后

ruby-on-rails - 使用 oAuth2 gem 和 facebook 的 OpenSSL 问题

api - 是否可以通过 Graph API 或其他编程方式访问 Open Graph Insights?

facebook - 使用 Facebook API 从有年龄限制的页面中提取事件?

ios - 处理 ios 实时客户端-服务器通信的最佳方法是什么?

ios - 如何诊断异常类型 : EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS?

android facebook sdk share-dialog setCaption 不工作

android - 使用 Android 在 friend /粉丝页面上上传照片

iOS SDK Mutual Friends Facebook API v2.0