how to set a facebook profile picture using the graph api

后端 未结 5 1270
半阙折子戏
半阙折子戏 2020-11-27 13:00

Is there any way to change the user\'s profile picture using the graph api?

I know you can\'t with the rest api (reference), but I could not find anything in the new

5条回答
  •  星月不相逢
    2020-11-27 13:11

    PicBadges application (no longer available) is doing this job clearly. Just take a look at their app. Its pretty clear how they have implemented.

    They are not directly uploading pictures to "Profile Pictures" album. Instead, they are uploading as usual to their auto generated album (on their app name) and then selecting the pic as "profile pic". However, this method involves redirection of users to page where they need to crop it before getting done.

    Interesting implementation to note!

提交回复
热议问题