【问题标题】:get the total likes count and message count using mediaid/post id graph api/Instagram api and get isuser following you or not使用 mediaid/post id graph api/Instagram api 获取总点赞数和消息数,并获取 isuser 是否关注您
【发布时间】:2014-11-20 11:02:24
【问题描述】:

我只想触发图形 api 以获取相应 media_id 的喜欢/cmets 总数。

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();
  1. 我们能否使用 instagram rest api 获得 media_id 的点赞数/cmets 数。我已经搜索了他们的文档。我找不到任何端点。

3.我们是否有 Instagram 的 jsonobject 来告诉我该用户是否关注你,类似于 Is_User_Liked

【问题讨论】:

    标签: android ios facebook facebook-graph-api instagram


    【解决方案1】:

    媒体端点返回媒体的点赞数和 cmets 数:

    http://instagram.com/developer/endpoints/media/#get_media

    在 JSON 响应中查找 data.comments.countdata.likes.count

    【讨论】:

    • 谢谢!我还想知道一件事。我们能知道用户是否关注了 user_has_liked.. 我想知道目标用户是否关注了。
    • 是的,使用Relationship Endpoints
    • 是的,我已经看到了。我不想为每个用户调用 reltionship。是否有任何类似 user_has_liked 的对象用于关注(搜索时需要它)
    猜你喜欢
    • 2022-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-11
    相关资源
    最近更新 更多