Can I set a users profile image using the Facebook API?

thruflo picture thruflo · Oct 30, 2009 · Viewed 27.9k times · Source

I'm looking for a user.setImage call or something to that effect on the Facebook API but I can't see anything to achieve this: specifically to overwrite a user's profile image (not just post an image on their wall).

I can't see anything in the docs. Do you know if this is possible and if so any docs on implementing it?

Answer

Hannes picture Hannes · Jun 10, 2011

You can redirect the user to the following link where [PID] stands for the id of the desired picture:

http://www.facebook.com/photo.php?fbid=[PID]&makeprofile=1

On this page the user will see the picture and immediately be prompted with a dialog if he wants to set it as his profile picture.