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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors