lib/share_counter.rb in share_counter-0.3.1 vs lib/share_counter.rb in share_counter-0.3.2

- old
+ new

@@ -8,10 +8,10 @@ html = make_request "http://urls.api.twitter.com/1/urls/count.json", url: url return JSON.parse(html)['count'] end def self.facebook url - html = make_request "https://api.facebook.com/method/links.getStats?urls=#{url}&format=json" + html = make_request "https://api.facebook.com/method/links.getStats", urls: url, format: "json" return JSON.parse(html, symbolize_names: true)[0] end def self.reddit url html = make_request "http://www.reddit.com/api/info.json", url: url