在Facebook上收到朋友? [英] Get friends like in facebook?

查看:135
本文介绍了在Facebook上收到朋友?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方式来找到我的朋友的喜欢。因此,使用图形API的其他url将是这样的,


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屋!

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