我可以使用 Facebook API 设置用户个人资料图片吗?

问题描述:

我正在寻找 user.setImage 调用或对 Facebook API 但我看不到任何东西可以实现这一点:特别是覆盖用户的个人资料图片(不仅仅是在他们的墙上张贴图片).

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?

您可以将用户重定向到以下链接,其中 [PID] 代表所需图片的 id:

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.