Facebook Graph API:参与计数细目 [英] Facebook Graph API: engagement count breakdown

查看:71
本文介绍了Facebook Graph API:参与计数细目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用旧的API,我可以获取每个URL:
喜欢,分享,评论,点击数。 (使用 links.getStats?urls = www.google.com

Using the old API I was able to get on each URL the: likes,shares,comments,click count. (used the links.getStats?urls=www.google.com)

如何获取所有信息通过新的API?
我尝试使用
https://graph.facebook.com/?id=http://www.google.com&fields=og_object {engagement}

How do I get all that information via the new API? I tried using https://graph.facebook.com/?id=http://www.google.com&fields=og_object{engagement}

根据我的理解,参与人数是上述所有字段的总和。

From what i understand the engagement count is the sum of all the fields above..

我如何分别得到每一个? (和一个请求!)

How can i get each one separately? (and in one request!)

通过从URL获取ID,然后要求
<$ c,我可以找到喜欢和评论数$ c> https://graph.facebook.com/381702034999?fields=likes.limit(0).summary(true),comments.limit(0).summary(true),engagement
但是股票和点击呢?为什么参与度比这个总和大得多?

I was able to find the Likes and comments count by getting the ID from the URL and then asking for https://graph.facebook.com/381702034999?fields=likes.limit(0).summary(true),comments.limit(0).summary(true),engagement But what about shares and clicks? and why the engagement is so much bigger then the sum?

推荐答案

据我所知,不可能重现REST API结果与当前Graph API。

As far as I know it's not possible to reproduce the REST API's results with the current Graph API.

您可以拨打电话,如

/?fields=id,share,og_object{engagement{count},likes.summary(true).limit(0),comments.limit(0).summary(true)}&id=http://www.google.com

仅使用一个请求也可以获得类似的评论。它返回

which only uses ONE request to also get the like and comment counts. It returns

{
  "id": "http://www.google.com",
  "share": {
    "comment_count": 2,
    "share_count": 14139003
  },
  "og_object": {
    "engagement": {
      "count": 14139003
    },
    "likes": {
      "data": [
      ],
      "summary": {
        "total_count": 87227,
        "can_like": true,
        "has_liked": false
      }
    },
    "comments": {
      "data": [
      ],
      "summary": {
        "order": "ranked",
        "total_count": 1263,
        "can_comment": true
      }
    },
    "id": "381702034999"
  }
}

获取点击次数已经不再可行IMHO。

Getting the click count is no longer possible IMHO.

这篇关于Facebook Graph API:参与计数细目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆