0

As the title says, what is the difference when doing a request with the php sdk, between api('/me') and api('/current_user_fbid')?

4

3 回答 3

1

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

于 2012-05-20T21:35:17.157 回答
0

Using me or current_user_id in graph api will yield the same result.

You should check Developer Tool Explorer

DEMO

Hope this helps

于 2012-05-20T13:39:34.420 回答
0

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.

于 2012-05-20T20:10:39.190 回答