newprog
newprog

Reputation:

Change Facebook profile image via API

Is it possible to change someone's profile picture via the Facebook API?

Upvotes: 1

Views: 5179

Answers (4)

Chamuth Chamandana
Chamuth Chamandana

Reputation: 120

This feature is not possible, period. Although you can upload an image to the Graph API and then redirect the user to the permalink of that post :)

Upvotes: 1

Hoan
Hoan

Reputation: 117

It's possible by adding makeprofile=1 at the end of uploaded photo url. You can find example (PHP) and demo here: http://4rapiddev.com/facebook-graph-api/php-change-facebook-profile-picture-with-graph-api/

Upvotes: 0

jcomeau_ictx
jcomeau_ictx

Reputation: 38462

not possible: Facebook API/PHP - Is it possible to change a user's profile image via FB Graph API?, and also my own experience.

Upvotes: 2

allnightgrocery
allnightgrocery

Reputation: 1380

The Graph API discusses POSTing a picture to an account but I see nothing related to the direct altering of a user account. I suspect they only recognize GET requests under their RESTful API (for the user area). Thus, a no.

That's just information gleaned from the Facebook API docs, however. I could be missing something though.

Upvotes: 4

Related Questions