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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.