Social Share Counter Issue
Solution 1:
You have a number of problems.
The first is you're requesting a HTTP URL via HTTPS. Your browser's JavaScript console should be showing something like this:
Mixed Content: The page at 'https://fiddle.jshell.net/_display/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://cdn2.hubspot.net/hubfs/169677/social_sharing/get_social_counts.php?thisurl=https://fiddle.jshell.net/_display/'. This request has been blocked; the content must be served over HTTPS.
When corrected, it's still not going to work, because https://cdn2.hubspot.net/hubfs/169677/social_sharing/get_social_counts.php doesn't execute any PHP. Rather than a JSON response, you're getting the raw PHP code back, which JavaScript can't understand.
I don't believe Hubspot will host your PHP code for you.
Post a Comment for "Social Share Counter Issue"