使用 FQL 获取我的 UID
我需要使用简单的 FQL 查询获取我的 UID
,由于某种原因它返回一个空页面。
这是我的查询:
https://api.facebook.com/method/fql.query?query=SELECT uid FROM user WHERE uid=me()
I need to get my UID
using a simple FQL query, for some reason it returns an empty page.
This is my query:
https://api.facebook.com/method/fql.query?query=SELECT uid FROM user WHERE uid=me()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
me()
返回当前连接的用户。所以你需要附加一个access_token
:PS:Facebook刚刚发布了< /a> 一个用于查询 FQL
fql
的 Graph API 端点,因此您应该能够执行以下操作:(不幸的是,由于某种原因,它无法在 Facebook 图形浏览器)
me()
returns the current connected user. So you need to append anaccess_token
:P.S.: Facebook has just released a Graph API endpoint to query FQL
fql
, so you should be able to do something like:(unfortunately, for some reason it's not working on the Facebook Graph Explorer)