Is there a way that I can retrieve the total number of Likes for my entire website for the day?
Essentially, I'd like to display the total number of Like for each blog post that day.
It's all time stats and not for the day but this simple Graph API call shows how many times an URL has been shared, for example:
https://graph.facebook.com/http://google.com
If you launch it everyday with every URL of your website, you can store the values and get daily stats.
You can use Facebook Insights to have statistics for your domain.
Cheers,
You need to put some code into your website, as said in the documentation so you can't do it for the domain you want, just for domains under your administration.
For the rest, just can get the likes for a single URL, using, for example, this link
Total Likes shows only likes for current page, not whole websites, as it says. Try it with different urls.
Related
Can we know per daily basis through the Facebook API the number of likes, the number comments, the number of shares on our posts and the number of posts made by users to ourg page? Not a sum of all these but each one separately.
You can use FQL to query the insights data for your app or page. See documentation and list of available metrics.
page_fan_adds will give you the new fans per day, for a page (application_like_adds for apps). page_like_adds, page_comments_adds and page_wall_posts are deprecated, so you will have to look for some other metric to replace this info. page_stories maybe?
Alternatively you can use the Graph API.
https://graph.facebook.com/APP_ID/insights/application_like_adds/day?access_token={ACCESS_TOKEN}&since=yesterday
i'm working with facebook graph API and i need to get the number of likes a given post had on a given date. As in, how many likes the post had on Jan 20, but i can't find a way to do that. I already tried with /POST_ID/likes and i get the people who liked the post, but not a single date, also tried using ?since=DATE&until=DATE but no luck.
This isn't possible using the Graph API, you can only get the "current" total number of likes for a post.
You could set up some cron jobs and a service within your application to get the current amount of likes everyday for the lifetime of the post, and store them locally. And then do some math on your local data to figure out how many likes were actually done between a date range. Probably not ideal, or even practical, and in your case you probably would be missing a lot of data since you don't already have this set up.
I'm having trouble finding resources for graphing the total number of likes on Facebook pages I admin.
Facebook Insights show new likes/unlikes/etc, but what I'm looking for is a way to see how many fans I have now versus, say, a month ago, and a month before that, etc etc etc, like you can with Google Analytics.
I think I'm having trouble finding resources mostly because when searching any variation of "graph facebook likes", mostly what comes up is information on the Open Graph API.
Any ideas/resources?
Try the page_fans insight, which gives you the total number of likes at any given time for your page. You should be able to go back and get data for a couple months at least.
I'm trying to get statistics for likes on my domain. I would like to get all likes (if possible with user ids) for all pages on my domain (which has tens of thousands of pages)
What does domain_like_adds actually return?
SELECT metric, value FROM insights
WHERE object_id=[domain-id] AND
metric='domain_like_adds' AND
end_time=end_time_date('2011-01-03')
AND period=period('month')
Returns blank, does anyone know what data domain_like_adds returns?
Regards,
Niklas
I don't think there's any way you're going to get user IDs as that is a major privacy invasion, but I believe domain_like_adds indicates how many NEW likes your domain got in the given time period, as opposed to the cumulative likes your domain has earned until that point. It doesn't appear there's a viable way to determine the # of likes of all objects in your domain for all time without tracking it from the beginning and/or going back and summing up historical data.
You can make a sitemap.xml of your site and crawl the urls against the Facebook Graph API. I actually made a Ruby script to do this: http://bobbelderbos.com/2012/01/ruby-script-facebook-like-stats-blog/. I don't think you can get the users that 'liked' your pages, but this script might be useful to find out what URLs are most popular.
If I have an e-commerce site, for instance, where I have a selection of products that each gets a 'Like' button, how would I go about ranking these products in order of their popularity?
What I do is, I store the number of likes locally on my own Database.
You can grab the number of likes for a URL from link_stats table:
http://developers.facebook.com/docs/reference/fql/link_stat/
I looked around a lot for a simpler solution, but it's best if you store the number of likes locally. You can update your local value when a user clicks on the like button or you can do it every so often for all URLs if you don't have that many. I personally update the number of counts for all my URLs once every 24 hours.
-Roozbeh
You may be able to do it if you have all your products on one page using this tool:
http://www.pagesort.com
I suggest you keeping local reference count (in database) and set up facebook realtime update on those objects. So every time somebody likes your url (object), facebook service will post update to your api. https://developers.facebook.com/docs/reference/api/realtime/