通过Id获取用户个人资料图片 [英] Get user profile picture by Id

查看:137
本文介绍了通过Id获取用户个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在开发基于Facebook图形API的网络应用程序。
我持有一些关于用户的数据 - 实际上是可能的公共数据 - 例如name和id。
我也知道个人资料照片是公共数据的一部分,我想知道如何使用他的身份证件直接链接到用户的个人资料图片?

I'm now working on a web application which is mostly based of facebook graph api. I hold some data about users - actually , the possible public data available - such as name and id. I also know that a profile picture is a part of the public data, and I wondered how I'll be able to get a direct link to a profile picture of a user only by using his id?

提前感谢

推荐答案

http://graph.facebook.com/ + facebookId +/ picture?type = square
例如:
http://graph.facebook.com/67563683055/picture?type=square

http://graph.facebook.com/" + facebookId + "/picture?type=square For instance: http://graph.facebook.com/67563683055/picture?type=square

除square之外还有更多的大小。请参阅文档

There are also more sizes besides "square". See the docs.

这篇关于通过Id获取用户个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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