无法使用app access_token而不是用户access_token查询“权限”FQL表

时间:2012-05-08 20:39:55

标签: facebook facebook-graph-api permissions facebook-fql facebook-access-token

我正在尝试使用我的应用permissions查询access_token FQL表格,例如:

https://graph.facebook.com/fql?&access_token=337313372909587|U_TaFVlx-9D6vOJXXXXZp22034k&q=select user_about_me from permissions where uid = me()

337313372909587|U_TaFVlx-9D6vOJXXXXZp22034k是我的应用访问令牌(当然我已更改)

问题在于它不起作用。相反,如果我尝试将应用access_token替换为user access_token,则可以使用。

重点是,根据the documentation我应该做的事情应该是可能的。

这是一个错误,无论是在API还是在文档中?有解决方法吗?

1 个答案:

答案 0 :(得分:0)

如果您的问题不是拼写错误,那么您在查询中使用的是where uid=me()

me()是占位符,表示当前会话用户的用户ID(即您正在使用其访问令牌的用户)

如果您尝试使用应用访问令牌进行该呼叫,则需要指定用户ID

https://graph.facebook.com/fql?&access_token=APP_ACCESS_TOKEN&q=select user_about_me from permissions where uid = USER_ID应该有效(适合我)

相关问题