2012-07-11 12 views

答えて

7

管理しているページのページアクセストークンを使用します(read_insightsPermission)。

/POST_ID/insightsにアクセスして、その投稿に関するインサイト情報を取得できます。

マイページのサンプル投稿の場合は、投稿のインプレッションデータが返されます。 抜粋:

{ 
     "id": "[ID REMOVED]/insights/post_story_adds_by_action_type/lifetime", 
     "name": "post_story_adds_by_action_type", 
     "period": "lifetime", 
     "values": [ 
     { 
      "value": { 
      "like": 20, 
      "comment": 3, 
      "share": 1 
      } 
     } 
     ], 
     "title": "Lifetime Post Stories by action type", 
     "description": "Lifetime The number of stories created about your Page post, by action type. (Total Count)" 
    }, 
    { 
     "id": "[ID REMOVED]/insights/post_impressions_unique/lifetime", 
     "name": "post_impressions_unique", 
     "period": "lifetime", 
     "values": [ 
     { 
      "value": 936 
     } 
     ], 
     "title": "Lifetime Post Total Reach", 
     "description": "Lifetime The number of people who saw your Page post. (Unique Users)" 
    }, 
    { 
     "id": "[ID REMOVED]/insights/post_impressions/lifetime", 
     "name": "post_impressions", 
     "period": "lifetime", 
     "values": [ 
     { 
      "value": 2936 
     } 
     ], 
     "title": "Lifetime Post Total Impressions", 
     "description": "Lifetime The number of impressions of your Page post. (Total Count)" 
    }, 

これが開始されたときからのブログ記事はこちら:https://developers.facebook.com/blog/post/573/ そしてinsights接続がPost documentation

に記載されています
関連する問題