You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 660 of mini_fb.rb (v1.1.5), within the MiniFB::fetch method, you check if the result is an array and immediately attempt to utilize Hashie to convert its structure. Unfortunately, the REST call to friends.getAppUsers returns an array of Facebook user ID's, which this method incorrectly attempts to convert (and ultimately has an error occur in Hashie). Instead, the raw array data provided by friends.getAppUsers should be returned to the calling method.
if res_hash.is_a? Array # fql return this
res_hash.collect! { |x| Hashie::Mash.new(x) }
else
res_hash = Hashie::Mash.new(res_hash)
end
The text was updated successfully, but these errors were encountered:
That seems like a valid workaround. Since I wasn't using FQL, I temporarily edited the same line to just return x, so that solution seems like it would work.
On line 660 of mini_fb.rb (v1.1.5), within the
MiniFB::fetch
method, you check if the result is an array and immediately attempt to utilize Hashie to convert its structure. Unfortunately, the REST call tofriends.getAppUsers
returns an array of Facebook user ID's, which this method incorrectly attempts to convert (and ultimately has an error occur in Hashie). Instead, the raw array data provided byfriends.getAppUsers
should be returned to the calling method.The text was updated successfully, but these errors were encountered: