Put your facebook profile picture on your website.

Okay, this is really simple to do… all  you need is a facebook account with a profile picture and a HTML/PHP website.

To get your full profile picture on your site use the following:

<img src="http://graph.facebook.com/{user_id}/picture?type=large" alt="Facebook">

Remembering to change {user_id} to your user ID on facebook (eg. Mine would be MrNiallDavies)

However, if you want just the small image (the avatar that shows up next to your posts) you can use the following:

<img src="http://graph.facebook.com/{user_id}/picture" alt="Facebook">

Remembering to change {user_id} to your user ID on facebook (eg. Mine would be MrNiallDavies)

Thanks… (:

Leave a Reply

Your email address will not be published. Required fields are marked *