douce1368 2018-06-14 09:29
浏览 39

Facebook Graph没有按顺序返回结果

I'm having this problem, I'm querying the graph in order to make about 40 requests on the same query, and thought the response would be sorted in the same order that i'm making the request...

It seems it doesn't.

As I researched, Facebook processes these orders in an asynchronous way, so the resulting array won't always come in the same order that it was made...

is there a way to bypass this? or maybe give each individual request an id of some sort?

My query is as follows:

https://graph.facebook.com/?ids=PageOne,PageTwo,PageThree,PageForty&fields=fan_count&access_token=XXXXXXXXX

As for now, I'm sometimes getting my response on the right order, but SOMETIMES not, sometimes i'd get something like:

-PageOne results

-PageFour results

-PageTwo results

-etc...

I'm doing multiple requests at once because of the API Limit, but I'm not sure if my thinking is right, could it possibly be the exact same as doing each request individually?

  • 写回答

1条回答 默认 最新

  • dongye8110 2018-06-14 10:02
    关注

    I not sure , but I find this on doc's api facebook graph : I hope this help you

    评论

报告相同问题?

悬赏问题

  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法