Facebook连接 - 以高/原始分辨率获取个人资料照片 [英] facebook connect - get profile photo in high/original resolution

查看:121
本文介绍了Facebook连接 - 以高/原始分辨率获取个人资料照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法获得比大的用户更高分辨率的照片是200x0 ...

is there any way to get the profile photo of a users in a higher resolution than "large" which is 200x0...

https://graph.facebook.com/19292868552/picture?type=large

提前感谢!

推荐答案

我现在有同样的问题。我的解决方案是使用个人资料相册封面的coverId。

I'have the same problem at the moment. My solution is to use the coverId of the profile album cover.

您可以使用GraphApi获取用户的所有相册

You can use GraphApi to get all Albums of the User

https://graph.facebook.com/%profileId%/albums

并使用类型为个人资料的相册的coverId获取个人资料照片

and use the coverId of the album with type 'profile' to get the profile photo

https://graph.facebook.com/%coverId%

否则你可以建立一个这样的fql查询

Otherwise you can build a fql query like this

SELECT src_big FROM photo WHERE pid IN (SELECT cover_pid FROM album WHERE owner = %profileId% AND type = 'profile')

我在Facebook开发人员文档中找到了这个,通过写出答案的查询

i found this in the facebook developer docs by writing the query for the answer

http://developers.facebook.com/docs/reference / fql / photo /

我希望这有助于您

这篇关于Facebook连接 - 以高/原始分辨率获取个人资料照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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