0

I am making some fb open graph query of the form me/posts and I get the right result.

However I also get stuff like,

{"story" "MY_NAME likes a status", "id" "MY-FACEBOOK-ID_OTHER-MISTERIOUS-ID"}

Since I am human I guessed that "OTHER-MISTERIOUS-ID" should be the ID of the status I liked, so I try to fetch such status, always on open-graph with a query like /OTHER-MISTERIOUS-ID, but this query return empty.

Someone else faced the same problem ? What they come out with ?

4

1 回答 1

0

帖子 ID 无法更改。检索帖子后,您必须检索每个帖子的喜欢,如下所示:

 https://graph.facebook.com/POST_ID/likes?limit=10000&format=json&access_token=ACCESS_TOKEN

你会得到这样的回应:

 {
"data": [
 {
  "id": "FACEBOOK_ID OF THE USER WHO LIKED THE POST",
  "name": "NAME OF THE USER"
}
],
"paging": {
"cursors": {
  "after": "******",
  "before": "***"
 }
 }
}

因此,您将获得所有喜欢特定帖子的用户,并且您可以轻松比较 ID 以找到您喜欢的帖子。

于 2013-10-30T09:26:26.360 回答