开发者

Change Facebook profile image via API

Is it possible to change someone's profile picture via the Fac开发者_Go百科ebook API?


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.


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


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 :)


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜