我有一个像这样的图像url,但它已经过期
https://scontent-a.xx.fbcdn.net/hphotos-xfp1/v/l/t1.0-9/p180x540/14377_340369866155028_6836158858133154924_n.jpg?oh=7ed0d8818ad54fac851b036d24f5e674&oe=555579EE3
经过研究,我知道facebook出于安全原因更改了图像的签名url,我发现了一种新的方法,通过将用户id传递到这个链接来访问图像
https://graph.facebook.com//picture?width=600
新方法现在也已过期。我正在寻找解决方案,以便图像的链接不会;t过期。
解决方案是什么?
你试过吗
https://graph.facebook.com/v1.0/user_id/picture?width=600
或者根据Facebook Graph API的官方文档,您可以使用access_token(如(发出此请求
https://graph.facebook.com/v1.0/user_id/picture?width=600&access_token=<access_token>