我可以设置使用Facebook的API一个用户的个人资料图片? [英] Can I set a users profile image using the Facebook API?

查看:120
本文介绍了我可以设置使用Facebook的API一个用户的个人资料图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在 Facebook的API 一个user.setImage来电或东西的效果但我看不到任何东西来实现这一点:专门来覆盖用户的配置文件的图像(不只是张贴在墙上的图像)

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

我看不到在文档任何东西。你知道这是可能的,如果是这样的implementating任何文档?

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

推荐答案

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

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

<一个href=\"http://www.facebook.com/photo.php?fbid=%5bPID%5d&makeprofile=1\">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

这篇关于我可以设置使用Facebook的API一个用户的个人资料图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆