Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mmatusche
Regular Visitor

Facebook: Query Syntax

Hello Everyone,

 

for a University Project i have to analyse some Social Media data. I know that Power BI is maybe not the best option for that but its the only programm im (slightly) familiar with.

 

What i need is all the comments plus the like count from one specific post. (A big post with 3.2 million comments) As directly targetting the post does not work for me(It only returns the comments not how many times they were liked) i give the id from the site to Power BI. What i want to do next is limit the resusults because the query would take to long otherwise.

 

Now my query looks like this:

let
    Quelle = Facebook.Graph("https://graph.facebook.com/v2.2/raetseldestages/posts?since=2016-01-01&limit=10"),

etc.

What i need is the syntax for the other side of "timeframe" i have tried "&until=2016-01-02" But that does not seem to work. Is there any advice for me? Or maybe a site where i can look up some of those commands?

 

Greetings from Frankfurt

1 REPLY 1
Anonymous
Not applicable

Hi @mmatusche,


You can modify the limit to 100, it will improve the performance.("limit" means how many records facebook api return each time)

 

About the api filter, you can refer to following article:

Using the Graph API

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.