http - Facebook graph API response size limiting (error code 1) -


just sharing information came across while testing application.

facebook graph api implements rate limiting described on documentation page. today trying retrieve feed cnn facebook page , got following 500 error:

{"error":{"code":1,"message":"please reduce amount of data you're asking for, retry request"}}

this query trying test:

https://graph.facebook.com/v2.3/5550296508/feed?fields=id,actions,application,caption,created_time,description,from,icon,is_hidden,link,message,message_tags,name,object_id,picture,place,privacy,properties,source,status_type,story,story_tags,to,type,updated_time,with_tags,shares,likes.limit(50),comments.filter(stream).limit(50){attachment,created_time,from,id,like_count,message,message_tags,comments{attachment,created_time,from,id,like_count,message,message_tags}}&access_token=xxxxxxx

i tried set different limit values reduce size, , worked. inspecting response size , playing around bit, found error thrown when response reaches (roughly) 200k threshold.

i tested graph api versions 2.3 - 2.4 - 2.5 - 2.6

i found no documentation response size limit on facebook apis documentation, it's possible changed in future.

just thought might useful share if modelling using api.


Comments