【问题标题】:Facebook Batch returns: Some of the aliases you requested do not existFacebook 批量返回:您请求的某些别名不存在
【发布时间】:2015-02-17 21:30:25
【问题描述】:

我正在构建这个批次,以获取相册中所有图片的所有共享计数(以及每张照片上的点赞和 cmets):

我的批次:

[
 {
   "method":"GET",
   "name":"get-photos",
   "relative_url":"951337131548012?fields=photos.limit(250){likes.limit(1),comments.limit(1),id,source,page_story_id},likes.limit(1)"
 },
 {
   "method":"GET",
   "relative_url":"{result=get-photos:$.photos.data.*.page_story_id}?fields=shares"
 }
]

它总是返回带有 page_story_id 编号的Some of the aliases you requested do not exist,但是当我查询该故事 id 的图形 api 时,我得到了数据..

任何想法为什么?

【问题讨论】:

    标签: facebook facebook-batch-request


    【解决方案1】:

    当我在这里回答我的问题时:Facebook Api v2.2 - get album's photos shares count

    正确的批处理请求应该是:

    [
     {
       "method":"GET",
      "name":"get-photos",
      "relative_url":"951337131548012?fields=photos.limit(250){likes.limit(1),comments.limit(1),id,source,page_story_id},likes.limit(1)"
      },
     {
      "method":"GET",
      "relative_url":"/?ids={result=get-photos:$.photos.data.*.page_story_id}&fields=shares"
     }
    ]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-03
      相关资源
      最近更新 更多