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
jessicaf31
Helper I
Helper I

Error - failed to save modifications to the server : Facebook likes

Hello,

 

I try to analyze the likes evolution of my page, I put that code in the  Advanced Editor : 

 

let
Source = Facebook.Graph("https://graph.facebook.com/v2.7/[MYPAGENAME]/insights/page_fans?since=2016-12-31"),
#"Expanded values" = Table.ExpandTableColumn(Source, "values", {"value", "end_time"}, {"values.value", "values.end_time"})
in
#"Expanded values"

 

I can see the table correctly but when I close and apply, here is the message that appears: "Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: [DataSource.error] Facebook: Invalid Parameter.'.

 

Please help ! 🙂

Thanks!

Jessica

1 ACCEPTED SOLUTION

Hi,

 

This Facebook connector is still not very stable mainly because Facebook often changes the structure of its APIs...

 

This should somehow work:

= Facebook.Graph("https://graph.facebook.com/v2.8/[YourFacebookPageName]/insights/page_fans?since=2016-12-31")[values]{0}

 

The green part of the code allows me to force Power Query to get the first table included in the list of tables ([values]) available.

 

This code also works:

= Facebook.Graph("https://graph.facebook.com/v2.8/[YourFacebookPageName]/insights/page_fans?since=2017-12-31"){0}[values]

 

In this case, I am getting the 1st full record of the Query and then the table included in the [values] element of this 1st record.

View solution in original post

1 REPLY 1

Hi,

 

This Facebook connector is still not very stable mainly because Facebook often changes the structure of its APIs...

 

This should somehow work:

= Facebook.Graph("https://graph.facebook.com/v2.8/[YourFacebookPageName]/insights/page_fans?since=2016-12-31")[values]{0}

 

The green part of the code allows me to force Power Query to get the first table included in the list of tables ([values]) available.

 

This code also works:

= Facebook.Graph("https://graph.facebook.com/v2.8/[YourFacebookPageName]/insights/page_fans?since=2017-12-31"){0}[values]

 

In this case, I am getting the 1st full record of the Query and then the table included in the [values] element of this 1st record.

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.