views:

223

answers:

1

hey

i am working on facebook iframe application in asp.net c# i succeed to retrive the access_token.

now i want to pull for example the user likes but i dont have the user id https://graph.facebook.com/XXXXXX/likes?access_token=...

how can i get the userid ?

thank you all

+1  A: 

There is a special user 'me' that can be used to get info on the current logged in user.

ie

print_r($facebook->api('/me/likes'));

Array
(
    [data] => Array
        (
            [0] => Array
                (
                    [name] => PuTTY
                    [category] => Technology
                    [id] => 29031951343
                )

            [1] => Array
                (
                    [name] => StumbleUpon
                    [category] => Technology
                    [id] => 6129039822
                )

.
.
.
)
)
DarkFlib