As the title says, what is the difference when doing a request with the php sdk, between api('/me') and api('/current_user_fbid')?
3 回答
Adding to avs099's
answer.
You cannot use me
without an access token. But you can use an id
without access token.
e.g.
http://graph.facebook.com/1137725463 works, but
http://graph.facebook.com/me will fail
Using me
or current_user_id
in graph api will yield the same result.
You should check Developer Tool Explorer
Hope this helps
as @Dhiraj Bodicherla said, "me" and "current_user_id" are the same - but there are exceptions when you cannot use "me" - for example, when you do requests using application or page tokens. So if you are writing a backend code which is dealing with multiple users/tokens etc - keep this in mind - you can't use "me" with app token.