2012-07-11 6 views

risposta

7

Utilizzo del token di accesso alla pagina per la pagina gestita, (con read_insightsPermission).

È quindi possibile accedere a /POST_ID/insights per recuperare informazioni dettagliate su tale post.

Per un esempio di post sulla mia pagina, restituisce i dati delle impressioni per il post. Estratto:

{ 
     "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)" 
    }, 

Il post sul blog da quando questo è stato lanciato è qui: https://developers.facebook.com/blog/post/573/ E la connessione insights è menzionato nel Post documentation

Problemi correlati