获取Facebook互相朋友在我和另一个用户之间 [英] Fetch Facebook Mutual friends between me and another User

查看:71
本文介绍了获取Facebook互相朋友在我和另一个用户之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的ios应用程序中获取Facebook互惠朋友



这是我尝试获得与此链接调用的共同朋友

  [NSString stringWithFormat:@me / mutual_friends /%@?fields = installed,fbuserId] 

它给我错误代码5
,当我使用 @我/朋友
它返回结果
i也尝试使用图形api浏览器它给未知路径



APi图形浏览器尝试



/ p>

解决方案

你可以用任何方式告诉我正确的路径?重新使用错误的端点语法,如@CBroe已经指出的,从文档中也清楚了。



您需要使用

  / {user-id} .context / mutual_fr发送

{user-id} 您感兴趣的用户,其他用户是访问令牌用于请求的用户。这仅适用于您的应用程序的用户。


i want to fetch Facebook Mutual friends in my ios App

this is my try to get mutual friends i call with this Link

[NSString stringWithFormat:@"me/mutual_friends/%@?fields=installed",fbuserId]

it give for me Error code 5 and when i use @"me/friends" it returns result i also try using graph api explorer it gives unknown path

APi Graph Explorer try

ALso my app have user_friends Permission can any one tell me the correct path ?

解决方案

You're using the wrong endpoint syntax, as @CBroe already pointed out, and which is also clear from the docs.

You need to use

/{user-id}.context/mutual_friends

The {user-id} is the user you're interested in, and the "other" user is the one which Access Token was used for the request. This ONLY works for users which are both already users of your app.

这篇关于获取Facebook互相朋友在我和另一个用户之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆