{"action":"created","issue":{"url":"https://api.github.com/repos/ollieglass/share-counter/issues/16","labels_url":"https://api.github.com/repos/ollieglass/share-counter/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ollieglass/share-counter/issues/16/comments","events_url":"https://api.github.com/repos/ollieglass/share-counter/issues/16/events","html_url":"https://github.com/ollieglass/share-counter/issues/16","id":56413996,"number":16,"title":" facebook service returns likes instead of shares","user":{"login":"bboroda","id":1641505,"avatar_url":"https://avatars.githubusercontent.com/u/1641505?v=3","gravatar_id":"","url":"https://api.github.com/users/bboroda","html_url":"https://github.com/bboroda","followers_url":"https://api.github.com/users/bboroda/followers","following_url":"https://api.github.com/users/bboroda/following{/other_user}","gists_url":"https://api.github.com/users/bboroda/gists{/gist_id}","starred_url":"https://api.github.com/users/bboroda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboroda/subscriptions","organizations_url":"https://api.github.com/users/bboroda/orgs","repos_url":"https://api.github.com/users/bboroda/repos","events_url":"https://api.github.com/users/bboroda/events{/privacy}","received_events_url":"https://api.github.com/users/bboroda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ollieglass/share-counter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-03T18:03:52Z","updated_at":"2015-02-05T03:01:07Z","closed_at":null,"body":"Here is an example:\r\n\r\n2.2.0 :001 > require 'share-counter'\r\n => true \r\n2.2.0 :002 > url='http://www.mybanktracker.com/news/improve-your-finances-end-of-year-budget-review'\r\n => \"http://www.mybanktracker.com/news/improve-your-finances-end-of-year-budget-review\" \r\n2.2.0 :003 > counts = ShareCounter.selected url, [:twitter, :facebook, :linkedin, :googleplus]\r\n => {:twitter=>71, :*facebook=>25*, :linkedin=>273, :googleplus=>0} \r\n2.2.0 :004 > counts.values.reduce(:+)\r\n => 369 \r\n\r\nHowever, if you look at something like sharedcount.com URL service and break down facebook services into sub-services, you'll get something like:\r\n\r\nhttp://www.sharedcount.com/#url=http%3A%2F%2Fwww.mybanktracker.com%2Fnews%2Fimprove-your-finances-end-of-year-budget-review\r\n\r\nFacebook\r\n\r\n*Likes: 25*\r\n*Shares: 138*\r\nComments: 2 \r\nTotal: 165 \r\n\r\nSo the likes are applied (25) instead of shares (138) in the above example."},"comment":{"url":"https://api.github.com/repos/ollieglass/share-counter/issues/comments/72986239","html_url":"https://github.com/ollieglass/share-counter/issues/16#issuecomment-72986239","issue_url":"https://api.github.com/repos/ollieglass/share-counter/issues/16","id":72986239,"user":{"login":"bboroda","id":1641505,"avatar_url":"https://avatars.githubusercontent.com/u/1641505?v=3","gravatar_id":"","url":"https://api.github.com/users/bboroda","html_url":"https://github.com/bboroda","followers_url":"https://api.github.com/users/bboroda/followers","following_url":"https://api.github.com/users/bboroda/following{/other_user}","gists_url":"https://api.github.com/users/bboroda/gists{/gist_id}","starred_url":"https://api.github.com/users/bboroda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboroda/subscriptions","organizations_url":"https://api.github.com/users/bboroda/orgs","repos_url":"https://api.github.com/users/bboroda/repos","events_url":"https://api.github.com/users/bboroda/events{/privacy}","received_events_url":"https://api.github.com/users/bboroda/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T03:01:07Z","updated_at":"2015-02-05T03:01:07Z","body":"@ollieglass  - here we go https://github.com/ollieglass/share-counter/pull/17"}}