Closed kenips closed 10 years ago
Alternatively we should "patch" Facebook's response and return { data: [] }
. Thoughts?
FbGraph::Collection
handles []
as {data: []}
, so []
should be fine.
BTW, do you have any sample json & sample API call code?
:+1: thanks!! Sorry wasn't able to respond earlier. I agree with you that this is a Facebook bug and we actually opened a bug report with them too. However they insisted []
being valid json in this case.
Hey @nov can we push up v2.7.12 to rubygems.org? Thanks!!
ah, sorry. I thought I've already released it, but actually not yet :p I just released it.
No worries. Thanks again!!!
See #350 - Facebook returns "[]" for some responses. Gem should accept them happily in this case?