如何知道流中的Feed发生了互动?

时间:2018-08-31 13:24:55

标签: c# getstream-io

我的查询如下:如果我有feedItem(在Facebook上发布的图片),如何验证自己是否喜欢它?是否可以验证我对feedItem所做的所有交互或其他人对其进行的交互(like, dislike, pin, share)? getstream.io中有什么方法可以检索这些交互?

预先感谢...

1 个答案:

答案 0 :(得分:0)

Graph API提供了您需要的所有功能。以下是一些示例:

  1. 读取Shared posts [它是对象的字段]:https://developers.facebook.com/docs/graph-api/reference/v3.1/post#read
  2. 阅读likeshttps://developers.facebook.com/docs/graph-api/reference/v3.1/object/sharedposts
  3. 阅读likeshttps://developers.facebook.com/docs/graph-api/reference/v3.1/object/likes#read
  

/ likes如果以   用户访问令牌:

     

相册,照片,帖子,视频

所有返回都是JSON,您可以直接Deserialize Anonymous Type,而无需使用流,例如 { "likes": { "data": [ { "name": "Bill the Cat", "id": "155111347875779", "created_time": "2017-06-18T18:21:04+0000" }, { "name": "Calvin and Hobbes", "id": "257573197608192", "created_time": "2017-06-18T18:21:02+0000" }, { "name": "Berkeley Breathed's Bloom County", "id": "108793262484769", "created_time": "2017-06-18T18:20:58+0000" } ], "paging": { "cursors": { "before": "Nzc0Njg0MTQ3OAZDZD", "after": "NTcxODc1ODk2NgZDZD" }, "next": "https://graph.facebook.com/vX.X/me/likes?access_token=user-access-token&pretty=0&summary=true&limit=25&after=NTcxODc1ODk2NgZDZD" }, "summary": { "total_count": 136 } }, "id": "user-id" }

{{1}}