Like button on website page link to like facebook page (differents urls) - facebook

I saw a lot of posts here and didn't find an answer. Let me explain. I have a site and a facebook page facebook . com/example . com. In website there is a like button for each page, so users can like example . com/page, example . com/page2. So I don't know if it is possible that when a user like page1 that this like increases like on facebook .com/example . com> page?
So resuming :
facebook . com/example . com has 2 likes.
example . com/page1 has 1 like.
example . com/page1 has 7 likes.
I would see on facebook.com/example.com on middle left 10 likes.
Is this possible? If yes how can I do it?

It is not possible, because every like button "likes" only one object. And there is no object hierarchy so that one object would consist of many other objects or one object accumulates the likes of other objects.
What you could do is to put a like button for your facebook.com/example.com page on every website. But in this case every like button shows the same like count. Then you can subscribe to the edge event with the javascript api and count the like-button-hits on every website: http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
This allows you to display a counter for like-button-hits on every website but you are not allowed to display it as a facebook button.
Another solution would be to put different like buttons on every website and fetch the like counts with the facebook Graph API http://developers.facebook.com/docs/reference/api/. The sum could be displayed on the facebook page, but again not looking like an usual like count.

I think you should have looked first in Facebook before you ask here (but I guess that's FB's fault as well because the link for its help section is at the bottom of the page and if you scroll down, the timeline keeps showing older posts instead of letting you see the bottom links). Check this: http://developers.facebook.com/docs/guides/web/

Not sure you are using a plugin in your website to accomplish this or using API directly. If you are using a Plugin, try Spider Facebook and it gives you a feature to add a hardcoded URL instead of a dynamic URL by page or by post. Spiderrock Facebook

Related

Facebook like count not working on my site

Hope you can help with the below, which I've spent most of this weekend trying to resolve but to no avail.
I use a social share and vote plugin on my website, which works perfectly for G+ Twitter Pinterest etc etc. However my facebook like button simply does not want to work.
Example, yesterday I posted this on my websites facebook page.
https://www.facebook.com/116091541779464/photos/a.496114153777199.1073741829.116091541779464/696621417059804/?type=1
As you can see, this links to this page of my website which has its like, share, +1 counts etc at the bottom: http://www.superluigibros.com/evolution-of-mario
As you can see from the Facebook post it has 85 likes. Yet the website shows only 1 like?
The social plugin that I use asks for an App ID. I have created, and activated an App in Facebook and put the App ID in the relevant field of the plugin.
However I am not sure that the App is actually set up properly on the Facebook side, or maybe it lacks the permission to actually count the likes?
The only other point of note is that I am using another Facebook widget (the one that shows who likes our page) in a seperate module. Could this be conflicting in some way?
If anyone could help would be greatly appreciated. I really dont understand whats up with it
Best regards
Luke
This is the case because those are two completely different things:
On http://www.superluigibros.com/evolution-of-mario the number of likes is the number of times the URL was liked
With https://www.facebook.com/116091541779464/photos/a.496114153777199.1073741829.116091541779464/696621417059804/?type=1 you just posted an image also present on your page to your Facebook pages. The like count show the likes only for this image
So, what you need to do is to add the OpenGraph tags properly to your website, as described at https://developers.facebook.com/docs/opengraph/using-objects#selfhosted-creating Then, you shouldn't share just an image on your Facebook page's feed, but the URL instead. FB will then pull the content for the image etc. from your website upon sharing.
The like counter in your facebook post is handled separately from the likes of your website page. Each "like" that your post receive doesn't count towards the site's like counter.
EDIT: I've just tested your site's like counter, and it's counting correctly as I have just liked it myself.

like facebook app page via url

i am using facebook like button in my site, if someone click like count of people my site url(http://mydomain.com) will increases
if you look in the 1st image i attached, there is another link find us on facebook
(https://facebook.com/myapppage )
i want it be liked automatically
just imagine this url is working -> https://facebook.com/myapppage?like=1 or true
and and page liked automatically will looks like this
is there any solution for this https://facebook.com/myapppage?like=1 and https://facebook.com/myapppage?like=true both not working.

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 use the Like Button Social plugin to like a feed from a landing page?

I have a Facebook feed that takes me to a landing page when I click on it. I want to be able to add Facebook's like plugin onto that landing page in order to like the feed I came from. This would be the equivalent of clicking like from the feed post itself. I don't know what to use for the data-href property in order to connect the like button to the feed.
I know the feed id and access_token and have tried the following:
https://graph.facebook.com/1608072154_362229823788663&access_token=...
http://www.facebook.com/1608072154/posts/362229823788663
So far I've only been able to like link urls and not the actual feed post.
Is what I'm trying to do even possible? and if so, how do I get the url?
Is what I'm trying to do even possible?
Yes it is possible, but not with the like plugin. I have a production app that pulls in a person's feed from multiple social networks including Facebook. I display a gray star for unliked content and a gold star for liked items. When the user clicks the gray star for a facebook item, I send an HTTP Post to the Graph API with /post_id/likes which likes it. If they click the gold star, then I send an HTTP DELETE to the /post_id/likes which removes it. See: https://developers.facebook.com/docs/reference/api/post/ and the "likes" create/delete section near the bottom.

Facebook Like Count Discrepancies - Page vs. Button

there is a huge discrepancy between the number of likes our page has received and the number of likes displayed when using the like button, and giving it the facebook page's URL (like button is much higher). Does anyone know why this happens?
As described in the doc :
What makes up the number shown on my Like button?
The number shown is the sum of:
The number of likes of this URL
The number of shares of this URL (this includes copy/pasting a link back to Facebook)
The number of likes and comments on stories on Facebook about this URL
The number of inbox messages containing this URL as an attachment.
I am a Facebook Partner Engineer working on platform. To bring your Facebook page Likes to your web page you should use the Like Box rather than the like button. This will allow you to gain Facebook page likes from your website while also giving you the option to show your page's stream stories right in your web site.
You can find out more about the like box here:
https://developers.facebook.com/docs/reference/plugins/like-box/
I hope this helps!
Jonathan
My understanding is the like button aggregates likes, comments and other interactions.
Basically the counter next to the button isn't the like count but an activity or interaction count.
You can get the actual like count through the graph api if you need it.