Skip to main content

Hello Segment community,

I am trying to connect our Facebook page as a source in Segment to pull the page insights data into our warehouse. Looking at metrics such as: 

  • page_impressions
  • page_engaged_users
  • page_posts_impressions
  • page_fan_adds

Was thinking of setting a Python script that pulls the metrics from Graph API endpoints then send to Segment as custom events using HTTP API.

I tried connecting the Facebook ads cloud object source in Segment but this would only get us paid campaigns insights as Collections. 

Any thoughts on how to achieve so? It would be good to know if any in the community tackled in this pipeline via Segment.

Cheers,
Moni 

Hi @Moni Moghrabi, Segment HTTP API should be able to accept the Facebook insight data from your custom Python script as long as it is formatted in the way that Segment expects. For more details on what those specifications are, you may refer to these docs. You’ll also find some more detail on Python implementation in the same place.

Is Meta Analytics giving you individual users in this data? As long as you are including the User IDs you want to track to your calls, passing custom properties should be no problem.

Something to keep in mind is that the HTTP API does have a rate limit, so double check how you want to batch the requests if you are sending the data in bulk.
Let us know how things are looking and feel free to reply with any follow-up questions or if you encounter additional blockers.


Reply