views:

36

answers:

3

Referring to this document, I must implement this strange tag to my website in order to add a like-button for it.

<meta property="fb:admins" content="USER_ID"/>

USER_ID is supposed to be replaced by my actual user id at facebook. How do I safely obtain the correct user id?

A: 

You can get a Facebook ID by doing this: http://www.ehow.com/how_5753004_facebook-id.html

Basically, go to your photos and click on one. It will be in the URL bar under fbid.

Andrew M
+2  A: 

This user id can be found a few ways: 1) Go to http://graph.facebook.com/you_user_name and you will see JSON data with the id property. 2) Or go to your profile page and you will see a url like this http://www.facebook.com/profile.php?id=12345656. The number after id= is your user id.

Nathan Totten
first way worked perfectly.
BugAlert
yep that looks good for me too!
MikeAinOz
A: 

If you log onto facebook you will see uid=USER_ID in the URL for home, profile etc.

MikeAinOz
well, no... I won't. Have an custom FB-URL...
BugAlert
It was there when I looked, now it's gone, facebook is weird
MikeAinOz

related questions