我只想触发图形 API 以获取相应media_id的喜欢/评论总数。
new Request(ParseFacebookUtils.getSession(), "/" + Post_Id
+ "/likes", null, HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
Debug.e("posted id likes responses", response.toString());
JSONObject graphResponse = response.getGraphObject()
.getInnerJSONObject();
Debug.e("posted id graph responses",
graphResponse.toString());
}
}).executeAsync();
- 我们可以使用Instagram REST API获得media_id的喜欢/评论计数吗? 我已经搜索了他们的文档。 我找不到它的任何端点。
3.do 我们有 jsonobject for Instagram 告诉我这个用户有没有关注你,类似于Is_User_Liked。
媒体终结点返回媒体的点赞和评论数:
http://instagram.com/developer/endpoints/media/#get_media
在 JSON 响应中查找data.comments.count
和data.likes.count
。