Hi SNURK
To stay compatible with the previous versions which used the “old” way of getting the numbers from Facebook, the plugin use the total_count number, which is shares, likes and comments combined. In the old Facebook API version, FB reported “shares” which really was the same number as todays total_count.
Which numebers beeing used should be clearified, and I will do so in an upcoming version which also lets you choose which numbers you want to use.
Hi, can you give us more information on how it makes the call to get the shares?
I am a little confused and think something is blocking the call so it cant fetch the shares
Definitely not working out of the box for me, so I’ll need more information. Going through your code I saw that you use wp_remote_get
wp_remote_get = do I need to remove any PHP functions from disable_functions in php.ini?
Will report back
For security reasons it is better you rewrite your call and use CURL only and avoid file_get_contents
You should NEVER have an empty disable_functions or you are opening your server to all sorts of nasty PHP attacks
fopen is not considered very secure and many system admins disallow it
This will probably apply only too few users like myself, but I would vote for CURL
Thank you for your feedback. Using file_get_contents() there was a mistake, I should of course have used wp_remote_get() instead. wp_remote_get() is part of the WordPress HTTP API and use whatever transport is available on the system. I think it prefers cURL.
An update is on the stairs.