Whenever I like a page on my website, the like count increases. But when I refresh that page, the like count decreases by 1 count. And when I login and logout from the my facebook account that is used for like count, the like count decreases.
I have copied the code from http://developers.facebook.com/docs/reference/plugins/like/
Pls help me in this regard
AFAIK this is how it works from facebook. I have observed this behavior also, the like button not reflecting the right number. I dont think there is anything a third party can do about it.
Related
I have Facebook page widget, and i want to track if user liked my page or not. If not then force them to like. I did code for that, but now issue is when user try to like page and not logged in, Facebook open login window and app id is different on that window(which is default, don't know from where it takes).
And because of that, users not able to authorize my app. And i cant track details of that users.
Make sure you are using Page Plugin, instead of the now-deprecated like box. It's hard to say without seeing any code, but it sounds like you are either using the SDK/plugin incorrectly, or using something like a 3rd party wordpress plugin that may be acting maliciously by injecting another ID.
I am trying to construct a Top 5 of engaged users and users that liked something on my Facebook page(a non-profit)(for instance posts, links or images). It has to be an aggregated total of engagement and likes for all items on the page per user.
Can anybody provide with some clues as to which Facebook API calls I could use for this. At this moment I am only capable of determining which users liked the page, or a particular post.
If the question is too general or anything else, I'll gladly modify it. I would have liked to attach image for clarification, but is not a possibility for me yet due to reputation score.
The only way to do this is to get all likes/comments/whatever from every single post with the API, store the numbers in your database and compare User IDs. You would have to keep it up to date too, so you would need to refresh your database entries from time to time.
I have an existing app that uses the Facebook API & login that makes posts to the user's wall. For each post I store the id of that post.
What I need to accomplish is to gather like counts of those posts generated by the first app. I'm trying to write a small app that routinely pulls the like count. I've figured out how to get the like count of the post if I use a User Token - via Facebook Login. But since this app will run as a batch and not by a human, I don't want to use a Facebook login page. I could write code that simulates a user logging in but that would be a major ugly hack. I've tried to use an App Token but then the like count is always zero. I've found how to get the like count of a page without the need for a User Token http://www.techrecite.com/get-facebook-likes-count-of-a-page-using-graph-api/ but not a post
Is this even possible? If so how?
I've looked into Facebook API's subscription, but it doesn't seem possible to subscribe to a "like-a-post" event. Although I could be wrong. If so, could someone point me in the correct direction.
Thanks.
I'm trying to fix a problem with the Facebook like button not showing on some urls on our site. It was working fine on all URLs until about a week ago.
It seems to be pretty inconsistent.
Currently i can see the like button on this URL
http://www.chargrilled.co.uk/t-shirts/I-See-Dumb-People-t-shirt.m
But not this URL
http://www.chargrilled.co.uk/t-shirts/Tea-Is-For-Mugs-t-shirt.m
From testing I have found that removing the www from the URL tends to fix the issue but obviously the like counts are different (usually 0).
Strangely when you go to the facebook like button page (https://developers.facebook.com/docs/reference/plugins/like/) and enter the second URL (above) the like button disappears even there.
Have tried so many different things, including stripping all other HTML, CSS and JS off of the page apart from the FB code and still no joy!
Your url is showing up in the debugger with no errors.
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.chargrilled.co.uk%2Ft-shirts%2FTea-Is-For-Mugs-t-shirt.m
suggestion: urls which appear not to be upto date, run them in the url debugger logged in as the admin account and Facebook will scrape the page for metatags.
http://developers.facebook.com/tools/debug
NOTE: If a user adds first like to a button, Facebook could take upto 24 hours to scrape the page or og tags, if an admin creates first like, it is done instantly. After first like either way, Facebook re-scrapes the page about every 24-72 hours.
I have successfully installed the facebook like button in iframe, but it seems like the "Likes" count is incorrect. I have tried liking a post from several accounts, and it always appear as only 1 like.
Any idea how to solve this?
I had a some "bug" with facebook like button.
First check yourt metas, and your og: properties. Put your url into a like button generator (http://developers.facebook.com/docs/reference/plugins/like/) and try to like your page. If the count is
Please try to change the like url to the facebook page, what is generator for your page to administer it. It was my solution to fix it.