Forum Discussion

dmitryo's avatar
dmitryo
Frequent Visitor
9 years ago

Facebook page insights with Power BI

Hello,

 

I try to get FB page Insights into the Power BI.

I specify Page ID, Connection as "Custom", set "insights" in the texbox.

 

After I specify credentials I get next error:

Details: "Facebook: Invalid query"

 

What is wrong here? 

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    I've only ever gotten "Me" to work correctly honestly. Probably need to bring this up with the Facebook folks that wrote the connector. You could try turning on tracing, File | Options and settings | Options | Diagnostics | Enable Tracing and see if the trace log gives you any additional information.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi dmitryo,

    Add a new blank query in Power BI Desktop, then paste following code in Advanced Editor and you will be able to get insights data from the your Facebook page.

    let
        Source = Facebook.Graph("https://graph.facebook.com/v2.5/pagename/insights")
    in
        Source

    There is an example for your reference.


    Regards,
    Lydia