从 Facebook Graph API 检索默认图像所有 URL 个人资料图片

问题描述:

我现在遇到一个问题,突然我数据库中来自 facebook 图形 API 的所有 url 图像都返回一个默认图像,如下所示:

I have an issue now, suddenly all url image from facebook graph API in my database return a default image look likes this:

示例网址:

http://graph.facebook.com/{user-id}/picture?type=large

这是一个已知错误(这也可能意味着将来不再可能):

It is a known bug (which could also mean that it will not be possible anymore in the future):

您应该订阅错误并等待.

You should subscribe to the bugs and wait.

更新:您可以通过向 API 调用添加 access_token 来使其工作,当然,您应该只在服务器端进行.应用访问令牌应该足够了:

Update: You can make it work by adding an access_token to the API call, but you should only do that server side, of course. An App Access Token should be good enough:

https://graph.facebook.com/<userId>/?fields=picture&type=large&access_token=...

2018 年 4 月 20 日更新:似乎图片 URL 又在没有访问令牌的情况下工作了: <img src="https://graph.facebook.com/[app-scoped-id]/picture"/>