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