lib/facebooker/admin.rb in mmangino-facebooker-1.0.16 vs lib/facebooker/admin.rb in mmangino-facebooker-1.0.19

- old
+ new

@@ -13,11 +13,11 @@ # ** BETA *** # +properties+: Hash of properties you want to view. def get_app_properties(*properties) json = @session.post('facebook.admin.getAppProperties', :properties => properties.to_json) - hash = JSON.parse(CGI.unescapeHTML(json)) + hash = Facebooker.json_decode(CGI.unescapeHTML(json)) @properties = ApplicationProperties.from_hash(hash) end # ** BETA *** # +restrictions+: Hash of restrictions you want to set. @@ -27,10 +27,10 @@ end # ** BETA *** def get_restriction_info(*restrictions) json = @session.post('facebook.admin.getRestrictionInfo') - hash = JSON.parse(CGI.unescapeHTML(json)) + hash = Facebooker.json_decode(CGI.unescapeHTML(json)) @restrictions = ApplicationRestrictions.from_hash(hash) end # Integration points include.. # :notifications_per_day, :requests_per_day, :emails_per_day, :email_disable_message_location