我已经实现了功能,就像我在开发中的跨平台移动应用程序(Phonegap)中的非FB URL一样,我需要找出部分功能,以确定用户是否喜欢之前的URL,因此是og.likes对象的GET。在这个请求的结果中,og.likes数据中有一个我不确定的字段。
我的要求:
GET me/og.likes?access_token={AccessToken}&object={EncodedExternalURL}
回应:
{
"data": [
{
"id": "_____",
"from": {
"id": "______",
"name": "______"
},
"start_time": "2015-01-12T06:17:24+0000",
"end_time": "2015-01-12T06:17:24+0000",
"publish_time": "2015-01-12T06:17:24+0000",
"application": {
"name": "______",
"namespace": "______",
"id": "______"
},
"data": {
"object": {
"id": "____",
"url": "____",
"type": "website",
"title": "____"
}
},
"type": "og.likes",
"no_feed_story": false,
"likes": { // <-- this guy here and its properties
"count": 0,
"can_like": true,
"user_likes": false
},
"comments": {
"count": 0,
"can_comment": true,
"comment_order": "chronological"
}
}
],
"paging": {
"next": "____"
}
}
likes
字段是什么?以及count
,can_like
,user_likes
的子属性?是否其他用户可以喜欢这样?
答案 0 :(得分:0)
likes
字段用于管理这样的喜欢。用户可以喜欢或评论类似的内容。