一次加载多张专辑封面照片?
目前,我使用 Graph API 返回 Facebook 粉丝页面的相册。
使用 cover_photo
,我可以通过在 HTML 中使用以下内容来获取照片:
http://graph.facebook.com/{$cover_photo}?type=normal
在最后一天左右,现在似乎需要访问令牌(因此也使用HTTPS)。现在的地址是:
<img src="https://graph.facebook.com/{$cover_photo}?type=normal&access_token={$access_token}" />
然而,之前曾经有点慢的现在正在爬行。
是否有一种更有效的方法可以以合理的大小加载最多 8 张封面照片图像,而不是简单地将地址与每个图像的访问令牌一起放入其中?
根据 Firebug 的说法,这似乎效率低下,并导致大量“阻塞”和“等待”。
Currently I used the Graph API to return the albums of a Facebook Fan Page.
Using the cover_photo
, I can get the photo using by using the following in my HTML:
http://graph.facebook.com/{$cover_photo}?type=normal
In the last day or so this now seems to require an Access Token (& therefore also use HTTPS). Now the address is:
<img src="https://graph.facebook.com/{$cover_photo}?type=normal&access_token={$access_token}" />
However, what was once a bit slow before is now crawling.
Is there a more effective way of loading up to say 8 cover photo images at a reasonable size than simply putting the address in there with an Access Token for each one?
This seems inefficient and results in lots of 'blocking' and 'waiting' according to Firebug.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在,您必须将
/picture
放在cover_photo
id 之后。例如,You now have to put
/picture
after thecover_photo
id. For example,