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.
Related
Hi Guys I am hoping someone could help me.
I have been toying around with the Facebook API for our company's facebook analytics page. I am looking to get information on the likes, shares, impressions etc and store directly to a database
I have been able to pull this information back using the Graph API Explorer. Now I want to be able to pull the information back for say today. When I add today's date in it only relates to the actual posts that were posted today, not today's activity. if that makes sense.
An example of this is if I had liked a post today that was created 2 days ago, it doesnt show in in today's activity, but the activity from 2 days ago.
The code I have been using is:
feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&since=2016-10-28
Just wondering if I am missing something as surely should be an easy way of getting todays actual activity from users?
Your example isn't fetching Insights, you're fetching the posts visible on the page's Timeline, then asking for a count of the comments and likes
There's a totally different API for fetching Insights data: https://developers.facebook.com/docs/platforminsights/page
This is the same API used by the Insights UI, so for the same set of metrics/dates, it should give identical results to the UI
I am developing a page on my site that pulls in analytics data from Facebook posts and pages, and have began with trying out the PHP SDK for Facebook.
The documentation seems to have improved in the last few months since the last time I used it, but as there is so much going on, I find it difficult to find the exact answer to my questions sometimes.
I want to get the analytics data for a number of posts and pages which are not necessarily related to each other... and also want to do this without logging in via Facebook. Is there some sort of simple API key I can use, which skips the logging in stage? I want a number of different peple to go to the site and see info from a number of different posts and pages.
Hope this makes sense.
You'll be able to get limited data from public pages and posts without logging in. Data includes number of likes, public page information, comment and likes on posts etc.
For example, if I look at the following Page https://graph.facebook.com/thetimberyard, I can see various stats like:
checkins
talking_about_count
were_here_count
likes
However, you can get better insights if you ask the user to login with read_insights permission. This permission will give you access to full insights for pages you own. Extra insights include (but not limited to):
Daily New Likes
Daily Unlikes
Daily Non/Logged-in Page Views
Weekly Non/Logged-in Page Views
Daily Internal Referrers
Daily External Referrers
Daily/Weekly/Monthly People Talking About This
Daily/Weekly/Monthly Reach Demographics, etc.
I have a quick question for the Facebook Guru's here.
A couple of years back I have written a facebook app that retrieves the amount of likes assigned to a photo. At the time, I was surprised to find out that neither FQL nor the Graph API returned accurate like counts at the time.
Now, I have been asked to develop a photo contest where people can vote on a few photo's to pick a winner. This contest is supposed to run on a Facebook page, as a facebook app and I'm trying to evaluate if I can use facebook's likes as voting mechanism.
I figure since Facebook's API changes rather often, maybe they have resolved the accuracy problems by now. I tried digging around in facebook's developer documentation, but I could not find if any of the current Facebook API's return accurate like counts on user submitted photo's.
Does anyone know if FQL or Graph API are currently able to provide accurate like counts for user-submitted photos?
I can't attest to accuracy but a Photo's 'likes' connection can be queried generating alist of likes as per the documentation. See example call below.
https://graph.facebook.com/10151509108346729/likes?access_token={any_valid_access_token}
I'm trying to get number of Page visits(by unique users) for a Facebook page for the particular day or Week , i hope you know that some of metrics in insights have removed so i'm search for apt metric to show the Page visit count for the day.
i have gone through some of metrics similar to my requirement like (page_engaged_users, Page_impressions etc),
but i'm confused to choose the best one to fit to my requirement.
The stat you're looking for appears to be deprecated.
page_active_users The number of people who have interacted with or viewed your Page or its posts. This includes interactions from Fans
and non-Fans. (deprecated) day, week, month
However here's some that look promising that you didn't mention
page_views Page views day
page_views_unique Page Views from users logged into Facebook day
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.