在FacebookInsights中获取post_印象返回空

在FacebookInsights中获取post_印象返回空,facebook,facebook-graph-api,facebook-insights,Facebook,Facebook Graph Api,Facebook Insights,我试图获得post_印象(和其他类型),但“数据”字段中没有数据。我没有使用PHPSDK或其他任何东西。只需在以下位置使用资源管理器: 我引用的类型来自: 这是我为page_storytellers(其中123456是我的页面id)获得的信息 这是我在同一时期内,按故事类型为页面讲述者提供的信息 { "data": [ { "id": "123456/insights/page_storytellers_by_story_type/day", "name

我试图获得post_印象(和其他类型),但“数据”字段中没有数据。我没有使用PHPSDK或其他任何东西。只需在以下位置使用资源管理器:

我引用的类型来自:

这是我为page_storytellers(其中123456是我的页面id)获得的信息

这是我在同一时期内,按故事类型为页面讲述者提供的信息

{
  "data": [
    {
      "id": "123456/insights/page_storytellers_by_story_type/day", 
      "name": "page_storytellers_by_story_type", 
      "period": "day", 
      "values": [
        {
          "value": {
            "fan": 16, 
            "other": 10, 
            "page post": 2, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "checkin": 0, 
            "user post": 0
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 15, 
            "page post": 5, 
            "other": 5, 
            "checkin": 1, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "user post": 0
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 139, 
            "fan": 97, 
            "page post": 33, 
            "user post": 2, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "checkin": 0
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "Daily Talking About This by story type", 
      "description": "Daily: The number of people talking about your Page, by story type. (Unique Users)"
    }, 
    {
      "id": "123456/insights/page_storytellers_by_story_type/week", 
      "name": "page_storytellers_by_story_type", 
      "period": "week", 
      "values": [
        {
          "value": {
            "other": 206, 
            "fan": 116, 
            "page post": 90, 
            "user post": 4, 
            "checkin": 3, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 203, 
            "fan": 119, 
            "page post": 87, 
            "checkin": 4, 
            "user post": 4, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 310, 
            "fan": 210, 
            "page post": 103, 
            "user post": 5, 
            "checkin": 4, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "Weekly Talking About This by story type", 
      "description": "Weekly: The number of people talking about your Page, by story type. (Unique Users)"
    }, 
    {
      "id": "123456/insights/page_storytellers_by_story_type/days_28", 
      "name": "page_storytellers_by_story_type", 
      "period": "days_28", 
      "values": [
        {
          "value": {
            "fan": 494, 
            "page post": 440, 
            "user post": 12, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 500, 
            "page post": 438, 
            "user post": 11, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 588, 
            "page post": 510, 
            "user post": 12, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "28 Days Talking About This by story type", 
      "description": "28 Days: The number of people talking about your Page, by story type. (Unique Users)"
    }
  ], 
  "paging": {
    "previous": "https://graph.facebook.com/v2.2/123456/insights/page_storytellers_by_story_type/?pretty=0&suppress_http_code=1&since=1417005354&until=1417264554", 
    "next": "https://graph.facebook.com/v2.2/123456/insights/page_storytellers_by_story_type/?pretty=0&suppress_http_code=1&since=1417523754&until=1417782954"
  }
}
事实上,在facebook的参考页面上,所有有*的类型都不起作用


我拥有具有管理页面、阅读洞察和阅读流权限的访问令牌。有什么想法吗?

首先,如果可能,您应该使用API的2.5版

在您的第一个请求中,您正试图从页面中获取“page_storytellers”,但从2014-07-02起,该页面已被弃用

您的标题说明您需要“post_impressions”,这需要从帖子本身获取:

请参阅此处的文档:

{
  "data": [
    {
      "id": "123456/insights/page_storytellers_by_story_type/day", 
      "name": "page_storytellers_by_story_type", 
      "period": "day", 
      "values": [
        {
          "value": {
            "fan": 16, 
            "other": 10, 
            "page post": 2, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "checkin": 0, 
            "user post": 0
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 15, 
            "page post": 5, 
            "other": 5, 
            "checkin": 1, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "user post": 0
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 139, 
            "fan": 97, 
            "page post": 33, 
            "user post": 2, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0, 
            "checkin": 0
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "Daily Talking About This by story type", 
      "description": "Daily: The number of people talking about your Page, by story type. (Unique Users)"
    }, 
    {
      "id": "123456/insights/page_storytellers_by_story_type/week", 
      "name": "page_storytellers_by_story_type", 
      "period": "week", 
      "values": [
        {
          "value": {
            "other": 206, 
            "fan": 116, 
            "page post": 90, 
            "user post": 4, 
            "checkin": 3, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 203, 
            "fan": 119, 
            "page post": 87, 
            "checkin": 4, 
            "user post": 4, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "other": 310, 
            "fan": 210, 
            "page post": 103, 
            "user post": 5, 
            "checkin": 4, 
            "coupon": 0, 
            "mention": 0, 
            "question": 0
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "Weekly Talking About This by story type", 
      "description": "Weekly: The number of people talking about your Page, by story type. (Unique Users)"
    }, 
    {
      "id": "123456/insights/page_storytellers_by_story_type/days_28", 
      "name": "page_storytellers_by_story_type", 
      "period": "days_28", 
      "values": [
        {
          "value": {
            "fan": 494, 
            "page post": 440, 
            "user post": 12, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-11-30T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 500, 
            "page post": 438, 
            "user post": 11, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-12-01T08:00:00+0000"
        }, 
        {
          "value": {
            "fan": 588, 
            "page post": 510, 
            "user post": 12, 
            "other": 9, 
            "checkin": 7
          }, 
          "end_time": "2014-12-02T08:00:00+0000"
        }
      ], 
      "title": "28 Days Talking About This by story type", 
      "description": "28 Days: The number of people talking about your Page, by story type. (Unique Users)"
    }
  ], 
  "paging": {
    "previous": "https://graph.facebook.com/v2.2/123456/insights/page_storytellers_by_story_type/?pretty=0&suppress_http_code=1&since=1417005354&until=1417264554", 
    "next": "https://graph.facebook.com/v2.2/123456/insights/page_storytellers_by_story_type/?pretty=0&suppress_http_code=1&since=1417523754&until=1417782954"
  }
}