开发者

IOS app cannot get Facebook uid by calling me() in FQL

I'm writing a program for IOS and want to get uid and name of the current user. I tried me(), but it does not return any value:

SELECT uid, name FROM user WHERE uid = me()

However it works when the uid is known, for example:

SELECT uid, name FROM user WHERE uid = 4

Does me开发者_如何学编程() require permission?


The 'me()' shortcut should work in any FQL query you make with a user's access token

If this isn't working you may not actually be operating with a logged-in user - many API calls will still work without a user login


Indeed it does require permission. You need to have the user authorize your app before the /me endpoint will work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜