How can I execute a FQL query with Facebook Graph API

后端 未结 5 899
南旧
南旧 2021-01-29 23:26

I\'m looking without any success for a way to execute a FQL(facebook query language) query with the new Open Graph API.

Does anyone know how I can do this?

Found

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 00:06

    Using the Javascript SDK, you can accomplish this using the following:

     FB.api('fql', { q: 'query here' }, function (response)
    {
     //Logic here
    };
    

    No legacy REST API required. I see a lot of confusion on this and Facebook hasn't made it very clear.

提交回复
热议问题