Jonathan Allen Grant
Jonathan Allen Grant

Reputation: 3658

How can I query multiple object insights in one Facebook API Call?

I saw this question (Query multiple insights metrics in one API call) but their answers are from 2012 and no longer work.

I want to get post_video_avg_time_watched and post_video_views in a single api call to Facebook.

How is this possible?

I don't want to use Facebook's batch request, because it counts against my rate limits twice instead of once.

Upvotes: 1

Views: 450

Answers (1)

Jonathan Allen Grant
Jonathan Allen Grant

Reputation: 3658

Yes, and easily! Just add the second value after a comma and the first value like so: /insights/post_video_views,post_video_avg_time_watched/lifetime

Upvotes: 4

Related Questions