Facebook的图形API不返回该事件的图片 [英] Facebook Graph API does not return the event picture

查看:143
本文介绍了Facebook的图形API不返回该事件的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:看起来像Facebook终于修正了这个错误

Seems like Facebook finally fixed this bug!

您能帮助我了解为什么发生这种情况:

Could you help me understand why this is happening:

这是用图片公众活动:
https://www.facebook.com/events/282054218538223

This is a public event with a picture: https://www.facebook.com/events/282054218538223

但是,当我尝试访问 http://graph.facebook.com/282054218538223/picture,我得到的是一个默认的图片。

But when I try to access http://graph.facebook.com/282054218538223/picture, all I get is a default picture.

下面是另一个公共事件: http://www.facebook.com/events/266496120103339

Here is another public event: http://www.facebook.com/events/266496120103339

但是,这一次,访问 http://graph.facebook.com/266496120103339/picture 返回事件的照片。

But this time, accessing http://graph.facebook.com/266496120103339/picture returns the event photo.

什么是两个事件之间的区别?

What's the difference between the 2 events?

推荐答案

这个答案并不能解释的为什么的要求使用图形API不工作,但可能会帮助别人谁需要检索事件个人资料图片。

This answer doesn't explain why the request doesn't work using Graph API but might help someone who needs to to retrieve event profile images.

使用FQL可以检索事件谱图像是这样的:

With FQL you can retrieve the event profile image like this:

选择图片,pic_small,pic_big FROM事件WHERE EID = 282054218538223

SELECT pic, pic_small, pic_big FROM event WHERE eid=282054218538223

。此调用返回的URL在3种不同尺寸的情况下个人资料图片。它适用于在罗宾的问题这两个例子,只是改变了事件ID。

using the event id from Robin's first example. This call returns urls to the event profile image in 3 different sizes. It works for both examples in Robin's question, just change the event id.

试着在图形浏览器与罗宾的例子:

https://graph.facebook.com/fql?q=SELECT pic,pic_big,pic_small FROM event WHERE eid=282054218538223

和MoXplod的例子:

and MoXplod's example:

https://graph.facebook.com/fql?q=SELECT pic,pic_big,pic_small FROM event WHERE eid=271148229633674

确认,如果需要作为 FQL事件表所列你有访问令牌。

Make sure you have access token if needed as outlined in the FQL event table.

这篇关于Facebook的图形API不返回该事件的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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