Take the 2-minute tour ×

I'm using the Facebook Javascript SDK and fbml like-buttons. Using the 'edge.create' callback I know when someone has liked an url. Is it possible to get the facebook-user-id as well? Without them having to log into my App/Domain with FB Connect

I would like to double-store likes for internal statistics (since it's hard to get very fine grain domain statistics via facebook.com/insights)

Regards, Niklas

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

That information is not available to developers through any of the facebook API's. You might want to store the uid's locally when the user clicks a like button.

Hope that helps. -Roozbeh

share|improve this answer
Roozbeh15: Do you mean using FB Connect on the site first (to get their uid) and then store that uid when they click a like button? (that's what I'm leaning towards) –  Niklas B Jan 12 '11 at 6:21
add comment

Nope, it is not possible to get a users id simply from them clicking on a like button.

I'm not sure why you would even need a users id to simply help you track like button clicks, if you need some sort of unique identifier try using sessions or a cookie.

share|improve this answer
add comment

Your Answer


