Facebook Api V2.2 Fql query

Facebook Api V2.2 Fql query

本文关键字:Fql query V2 Api Facebook      更新时间:2023-09-26

我目前正在使用Facebook Javascript Sdk 2.2版本,下面的api调用执行没有任何问题。但是 Fql 不是在 2.1 版中弃用的吗?最重要的问题是,这个查询将来也有效吗

FB.api(
   {
       method: "fql.query",
       query: "select first_name from user where uid=me()"
   },
   function (response) {
       console.log(response);
   }
);

因为你没有将图形 API 与方法调用一起使用 fql.query ,而是使用已弃用的 REST API,该 API 仅在 2015 年 4 月 30 日之前有效。

正确的端点是

/fql?q={query}

这只能在 v2.1 之前使用。

  • https://developers.facebook.com/docs/technical-guides/fql#read