gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 12:45:09 26 4
gpt4 key购买 nike

我正在寻找一个 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com