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

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

问题描述

有没有什么办法让用户比大更高的分辨率是200x0的个人资料照片...

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

<一个href=\"https://graph.facebook.com/19292868552/picture?type=large\">https://graph.facebook.com/19292868552/picture?type=large

在此先感谢!

推荐答案

I'have此刻的同样的问题。我的解决方案是使用的配置文件专辑封面的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

<一个href=\"http://developers.facebook.com/docs/reference/fql/photo/\">http://developers.facebook.com/docs/reference/fql/photo/

我希望这可以帮助您

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

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