How to get users who liked my website pages? - facebook

I am generating Like buttons for each of all my pages, objects or something that can be liked. After that I want to display on a page called "User statistics" all users who liked pages.
Searched web - nothing interesting.
Need a server side solution, no JS.

No. There's isn't a summary page.
But you can see number of shares/likes by using Graph API, for example
http://graph.facebook.com/?id=http://stackoverflow.com

Related

Facebook Open Graph Analytics

I am trying to figure out how many likes came from a facebook fangate page.
For example,
http://example.com/ has 1000 likes.
The example's fangate page has a "Like" button to http://example.com/
Does Facebook's open graph analytics have a tool to bring up data on where these links come from?
Is there a way to pull up data to analyze this? Say is there a way I was able to have data that told me
200 Likes came from example fangate page
300 likes came from some other site etc.
You have analyics for the Facebook Fanpage. Not for a URL.
If you are the administrator of the page. acess this link http://www.facebook.com/YOUR_PAGE_HERE/page_insights_likes
You cant see the source of like, but you can see the types of likes. If come from the page, from a like button, from a popup, from timeline, from celphone...

Is there any way to get a Facebook "Like Box" to include posts by other than the page owner

I'm looking after a fairly stodgy rather static website for an organization which (now) also has a Facebook "page" with a bit more of a community buzz around it.
I added a Facebook "Like Box" to the old site. While it's a nice attractor for the Facebook "page" through the "Like button", count and the photos of the community, I'm a bit disappointed the "stream" component of it (so far as I can tell) only shows posts by the page identity, which are relatively boring compared with what you have if you added the comments and "posts by others" from the community active on the Facebook page.
Is there any way of getting this additional content into the Like Box ?
I already tried adding '&force_wall=true' to the like box iframe parameters to no effect - in any case the page isn't for a place; it's for "Companies & Organizations" - so if this isn't controllable through the API I do wonder if there's something I can tweak in the FB page admin settings ? Or is it just not an option at all ?
Researched for the same, but no success. The closest you can get is through Activity Feed plugin, that too only if you have an App Page. So, the only option left is to get whole page feed using the Graph API and then parse it accordingly.
Ex: https://graph.facebook.com/cocacola/feed?access_token=your_access_token

Like button for Facebook page shows generic Facebook description in News Feed

I want a Like button on my web site that Likes my Facebook profile (rather than my web page), so that when a user clicks it they subscribe to my Facebook posts.
I've created the Like button using the tool at https://developers.facebook.com/docs/reference/plugins/like/
Further down that page there is an FAQ entry:
Can I link the Like button to my Facebook page?
Yes. Simply specify the URL of your Facebook page in the href
parameter of the button.
So, I've edited the href parameter to point to my Facebook page. eg:
https://www.facebook.com/myfacebookid
When a user clicks the Like button it has the desired effect. The user ends up having Liked my Facebook page. This is easily verified by the user going to my Facebook profile and checking that the Like button has changed to Liked.
But. When the user clicks the Like button, and entry appears in their News Feed with a generic Facebook description. ie:
Facebook is a social utility that connects people with friends and
others who work, study and live around them. People use Facebook to
keep up with friends, upload an unlimited number of photos, post links
and videos, and learn more about the people they meet.
I don't want a generic post about Facebook to appear. I want the description to relate to my Facebook account and/or web site.
Normally, I could modify this behavior with the Opengraph og: description tag, but as the page in the href is a Facebook page and not my own, I can't control the Opengraph tags.
I'm pretty sure that this was working okay before I enabled timeline for my account, so maybe this is a timeline bug?
So, how do I add a Like button which a) Likes my Facebook profile rather than one of my own web pages, and b) Posts a description of my Facebook profile rather than give a generic Facbook description?
Are all your fields in the info part of your page filled in, and/or completed? I just tested your theory and it seemed to work as expected, only thing is I know all fields in "info" are filled it. Give that a try.
This may happen if you have filled invalid/incomplete/wrong og tags in past and later changed them. Facebook's cache creates problem sometime.
Try putting all the entries (i.e. all og tags) and then debug them here http://developers.facebook.com/tools/debug. This debugger gives a detailed info about the url with og tags and also clears the cache for you.
This should solve the problem.
You have 3 important fields that used on page opengraph: Name,Description,Profile Image.
They are used when some one post your link on Facebook, or Google or some else web service that handle opengraph.
Actually, the suggested answers currently do not work and there is an open bug / ticket on Facebook for it. Up to now, there's no fix.
The problem is that you can not use simply https://www.facebook.com/myfacebookid. You should copy and paste the exact page URL. If you have a low number of likes it would look something like https://www.facebook.com/pages/[YourPageName]/[Your page Id]/, and this is the URL that you should use at this point.
If it does not work, try also https://www.facebook.com/[YourPageName]/[Your page Id]/.
In short, copy-paste the URL, do not type it manually.

Is it possible to combine a facebook page and a website in the social graph?

Facebook has "pages" for many things, like people, companies, etc. But it also has this open graph protocol. My company already has a web site, and we also have a facebook page (i.e. http://www.facebook.com/company)
People can "like" either one. We use a like iframe on the company website that refers to the website URL. I'd like to know if they can be connected such that when someone likes our facebook page, they really like our company's web site.
Or are these always going to be considered two different things?
To elaborate on puffpio's answer, you can have a like button for your existing page on you website by using the existing page's facebook url as the href parameter.
It is essential that you do not put a like button to your url if you do not want your likes split between the two. In this scenario there is no reason to have an open graph object for your page other than to provide correct data when a user shares your url in their feed. It's important to note that these shares also count towards the counter on the like button and as far as I know there is no way to recover them.
You can also use this url as your og:url tag however this will cause the linter to throw errors since the domains do not match.
No. Page and website is something different and you can't force user to like both
They are different things, but a workaround is that the like button on the company's website can be a like button for their page on Facebook with a caveat like 'Like us on Facebook' or something

How to create this kind of facebook page?

I want to create fb page,and to force users to like page,and to share if they want to see content of my fb fan page.
So,like that page,share that page,and you can than show content of that page.
You need to "capture" if the landing user on your Page Tab likes the page or not and if not show them different content and encourage them to Like the page to get more!
I've written an in-depth tutorial on how to check if a user is fan of your Facebook page and included a real world examples from a famous Facebook pages!
And just to add to my own article above, another GREAT example is one the "most" popular pages on Facebook Coca-Cola!
Just a side note, you don't force the users....you encourage them!
The closest you could get is to use a Canvas page with a Like Box or something embedded in it. You can listen for the "Like" by waiting for an FB.event.subscribe(edge.create) event in embedded Javascript.
I would caution you to abide by the terms for forcing people to like a page.
"Like" Reward Guidelines
Facebook API Policy