FQL事件pic_cover返回null [英] FQL event pic_cover returns null

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

问题描述



这是事件: https://www.facebook.com/events/545127275518406/



这是我的FQL查询: SELECT pic_cover FROM event WHERE eid = 545127275518406



该查询返回:

  {
data:[
{
pic_cover:null
}
]
}

另一个公共事件( https://www.facebook.com/events/133752506800219/ )使用相同的查询(取代 eid )返回:

  {
data:[
{
pic_cover:{
cover_id:431180503630072,
source:https://sphotos-a.xx.fbcdn.net/hphotos-ash4/299824_43118050363 0072_82863704_n.jpg,
offset_y:36
}
}
]
}

如果第一个事件有封面图像,为什么返回null?

解决方案

请求用户 user_photos 的许可部分解决了此问题。我说部分原因是有些照片没有退回。请记住,pic_cover和pic_big是两种不同的东西,


I am trying to fetch the cover picture for a public event on Facebook, but the pic_cover field returns null.

Here is the event: https://www.facebook.com/events/545127275518406/

Here is my FQL query: SELECT pic_cover FROM event WHERE eid=545127275518406

That query returns:

{
  "data": [
    {
      "pic_cover": null
    }
  ]
}

Another public event (https://www.facebook.com/events/133752506800219/) using the same query (with substituted eid) returns:

{
  "data": [
    {
      "pic_cover": {
        "cover_id": 431180503630072, 
        "source": "https://sphotos-a.xx.fbcdn.net/hphotos-ash4/299824_431180503630072_82863704_n.jpg", 
        "offset_y": 36
      }
    }
  ]
}

Why does the first event return null if it does have a cover image?

解决方案

Asking the user the permission for user_photos partially solves this issue. I say partially because some photoes are not returned. Bear in mind that pic_cover and pic_big are two different things

这篇关于FQL事件pic_cover返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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