如何使用'F'标志获取Facebook个人资料图片? [英] How to get facebook profile picture with 'F'-logo?

查看:120
本文介绍了如何使用'F'标志获取Facebook个人资料图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Graph API,我需要通过他们的UID获取用户的个人资料照片。
很容易做:http://graph.facebook.com/[Facebook UID] /图片



我记得,前段时间里有一个这些个人资料图片上的litte Facebook Logo(垃圾'f'-char)。但是现在,我只得到没有这个标志的个人资料图片。



如何使用这个'f'标志来获取图片?

解决方案

Facebook不存储'f'的图像,所以有一点麻烦来得到它们。



我发现这有用:



在graph.facebook.com/[id]/picture redirects之后,您需要最终的图像url。 / p>

http://external.ak.fbcdn.net/safe_image.php?&url= [imageurl]& logo



例如


I use Graph API and I need to get users' profiles pictures by their UIDs. It's easy to do: http://graph.facebook.com/[Facebook UID]/picture

I remember, some time ago, there was a litte Facebook Logo (litter 'f'-char) on these profile pictures. But now, I get only profile pictures without this logo.

How can I get images with this 'f'-logo?

解决方案

Facebook doesn't store images with the 'f' on, so it's a little hacky to get at them.

I've found that this works:

You'll need the final image url, after graph.facebook.com/[id]/picture redirects.

http://external.ak.fbcdn.net/safe_image.php?&url=[imageurl]&logo

eg. me

这篇关于如何使用'F'标志获取Facebook个人资料图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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