从Facebook Graph API检索默认图像的所有网址个人资料图片 [英] Retrieving Default Image All Url Profile Picture from Facebook Graph API

查看:60
本文介绍了从Facebook Graph API检索默认图像的所有网址个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在遇到问题,突然数据库中所有来自facebook graph 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=...


更新20.04.2018:似乎图片URL再次在没有访问令牌的情况下工作: <img src="https://graph.facebook.com/[app-scoped-id]/picture" />

这篇关于从Facebook Graph API检索默认图像的所有网址个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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