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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
atiqulbari
Frequent Visitor

facebook insight

Hi Everyone

My first post here! Hope you guys will help.

 

How do I get facebook page insight for a past date? I mean, selecting "Custom" and "insights" only gives me latest insight. But I need insight from an earlier date, say six months ago.

 

Is there any way to do it?

 

Thanks in advance!

 

Atiqul

8 REPLIES 8
mrdavies1981
Regular Visitor

I get the following error message when i try to connect. 

 

DataSource.Error: Facebook: Invalid query
Details:
DataSourceKind=Facebook
DataSourcePath=https://graph.facebook.com/
Detail=https://graph.facebook.com/v2.8/HeinigerGroomingAusNZ/insights?limit=1000

 

Any ideas?

HI @mrdavies1981

 

Could you please try with lower API version like 2.2, 2.6 or 2.7?

Hi @tringuyenminh92

 

Moved it to 2.6 and worked fine. 

 

Thanks for help.

 

tringuyenminh92
Memorable Member
Memorable Member

Hi
I learnt quite a lotvfrom datachant articles. To tell you the truth, these gave me the confidence to try power bi for fb analytics.

However, I couldn't find any formula or code with which I can extract insight for a past date. By default facebook returns only latest insight.

In other words, say I need insight as on Nov 30th of 2016.

Can you help me with this please?

TIA

Hi @atiqulbari,

 

With part 2 of that article: http://datachant.com/2016/02/18/facebook-page-insights-with-power-bi-part-2/

Author mentioned about SincePeriod. This is parameter that passed to api to get longer periods.

Hi @tringuyenminh92

 

I was trying to get facebook page insight for a date range using SincePeriod query. Although I am now getting the data, but lots of fields return errors.

 

I'm attaching screenshots for your understanding. FYI, I am an admin of this page, so am supposed to get all data

 Supermom BD Insights Error.png

 

Hi @atiqulbari,

 

I saw there is a difference between your link in FB.graph with the tutorial. Could you please share your whole of Query1 script or your pbix file for analysis? I will check it when available.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.