share_counter 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/share_counter/version.rb +1 -1
- data/lib/share_counter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701a51684f3f6a3928b1eedb34fc549e39088147
|
4
|
+
data.tar.gz: 0031d614760947d43798c427f76087c1ff00386c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cacc4d46769cdac1dd11bae09ef13e018a0f61a2e963526a920036340d61910d546174ab0a1a43a7178c49caec8f0e9d1579b4f290e0511400d9939ad381b36
|
7
|
+
data.tar.gz: a3593ee32a0dd8a255e9263fc84e5b0e13c19700f2c630f7e8272a310e28fa5952d595646350a3cfd07ebb7ee50fdb14e295b7d81d3e44710f013296b3eaf747
|
data/lib/share_counter.rb
CHANGED
@@ -10,7 +10,7 @@ module ShareCounter
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.facebook url
|
13
|
-
html = make_request "https://api.facebook.com/method/
|
13
|
+
html = make_request "https://api.facebook.com/method/links.getStats?urls=#{url}&format=json"
|
14
14
|
return JSON.parse(html, symbolize_names: true)[0]
|
15
15
|
end
|
16
16
|
|