Separation of organic and paid impressions in facebook api using R

I use the Rfacebook package to get the final impressions that facebookpost had. This works great, but this method does not share paid and organic experiences. I am using the following code:

getInsights(object_id="post_id", token= token, metric='post_impressions') 

Does anyone know how I can distinguish between organic and paid impressions / reach?

+5
source share
1 answer

See the Facebook Insights API section in Impressions Page .

You should be able to pass values ​​for metric as

  • 'post_impressions_paid'
  • 'post_impressions_fan_paid'
  • 'post_impressions_organic'
  • 'post_impressions_viral'
  • 'post_impressions_nonviral'
  • etc...

to obtain the necessary measures.

metric can also be a character vector that allows you to extract a lot at once.

+7
source

Source: https://habr.com/ru/post/1275644/


All Articles