在Facebook上收到朋友? [英] Get friends like in facebook?
问题描述
https://graph.facebook.com/user_id_some_number/likes?access_token=access_token
请注意,user_id_some_number是像12302892734748这样的ID,access_token是访问令牌。
但是,这会返回一个如下的空数据,
{
data:[
]
}
我不知道为什么它不起作用?我做错了吗?谢谢你的时间。
干杯,
Abhishek
仔细检查您是否拥有 friends_likes 数据权限。
friends_likes 提供对用户拥有
喜欢的所有页面的
列表的访问权限作为喜欢的连接。
参考: http://developers.facebook.com/docs/认证/权限
编辑:
您的语法为我工作
{
data:[
{
name:BookBooN.com,
category:申请,
id:48503876751,
created_time:2010-09-01T09:33:42 + 0000
},
{
name:New Zealand,
category :旅行,
id:154058198218,
created_time:2010-08-29T21:30:30 + 0000
},
您的权限对话框应该具有此样式
I am looking out for a way to find the "Likes" of my friends. Hence the rest url using graph api would be something like,
https://graph.facebook.com/user_id_some_number/likes?access_token=access_token
Please note that user_id_some_number is the ID something like 12302892734748 and access_token is the access token.
However, this returns me an empty data as follows,
{
"data": [
]
}
I am not sure why it does not work? Am I doing something wrong? Thanks for your time.
Cheers,
Abhishek
Double-check if you've got the users friends_likes data permission.
friends_likes Provides access to the list of all of the pages the user has liked as the likes connectionliked as the likes connection
Reference: http://developers.facebook.com/docs/authentication/permissions
Edit:
Your Syntax worked for me
{
"data": [
{
"name": "BookBooN.com",
"category": "Application",
"id": "48503876751",
"created_time": "2010-09-01T09:33:42+0000"
},
{
"name": "New Zealand",
"category": "Travel",
"id": "154058198218",
"created_time": "2010-08-29T21:30:30+0000"
},
Your permission dialog should have this style
这篇关于在Facebook上收到朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!