sarahhenderson/Crafty-Social-Buttons — pull request #13 by kepi (2014-10-28 22:10:33+00:00)
Title: Feature request: show total count of social interactions instead of shares only

Some time ago your plugin shows (at least for facebook) total number of interactions which changed to shares only.

I think this should be configurable so here is pull request.

Looks like that this is relevant only for Facebook and Google. I split it to different commits as for Facebook I think this way is clean.

But for Google, there is no official way how to get number of shares (you are in fact displaying number of +1 not shares). I'm simply parsing google+ page with url and fetch number of shares from there. I see 2 problems here: 1. it can stop working any time with change of that page. 2. I'm not sure if file_get_contents from remote page is supported everywhere and don't know how this will behave. First problem shouldn't be stopper as if it will case to work it simply will count as 0 and no "break".