Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to save facebook share count (the number shown next to facebook like button) in my database. There is a facebook url for that purpose as follows:

graph.facebook.com/?id=http%3A%2F%2Fwww.google.com

Output that i get for this url is as follows:

"id": "http://www.google.com",
"shares": 10098203,
"comments": 941

However when I noticed that for some URLs this does not work properly. My url has querystring id. I am passing encoded url string which works fine for some urls. But for some urls it does not return "shares" property at all.

Does anybody know how to resolve this?
Posted
Comments
yatz1 3-Jan-15 5:47am    
I don't want users to log in to facebook.
ZurdoDev 3-Jan-15 11:30am    
There is no way we can know why some work and some don't unless you show which ones work and which ones don't. Then perhaps, we can guess.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900