Can anyone please explain how the addThis facebook like button works?
The code for adding the button is
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
I'm going through the code of a website with pages listing details of different products. There is this fb like button on each of those pages. What exactly is liked here? Since I don't provide any facebook URL which specifies the page or image or anything related to this product that I've already put on facebook, what is this like button liking?
Related
I know this question has been asked before, but no answer I've found here or elsewhere has resolved my issue.
I would like my Facebook Like-button to show faces of friends who have liked the same page. Now it does not. If I like the page it shows my facebook profile picture but no other.
I know I have friends who have liked said page. They cannot see my picture either
I have used the HTML5 implementation of the button with following html: <div class="fb-like" data-width="300" data-show-faces="true" data-send="true"></div>
There is no issue with the height of the container since it can show one face (my own)
The URL of the page to like is not set in the fb-tag since it's a dynamic like-button that's availible on several pages.
See it in action on the right side of this page: http://www.takespace.se/Campaign/Stoppa-slavhandeln-i-Sverige
There's a quite a few products and services on this site I manage. They all have a Facebook share dialog. However, when clicking on the share button (for all of them), an empty Facebook dialog box appears:
My code is exactly what is given on the facebook site:
<a href="#"
onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),
'facebook-share-dialog',
'width=626,height=436');
return false;">
Share on Facebook
</a>
Any ideas on what could be causing this?
Thanks to +phwd over in the #facebook freenode chatroom for the answer:
My link was wrong. I should have included this in my original post. Here's what I had before:
https://www.facebook.com/sharer/sharer.php?title&url=http%3A%2F%2Fwww.some_site.com%2Fsome_page
I needed to do 2 things to fix this:
Remove title
change url to u
So it comes out like this:
https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.some_site.com%2Fsome_page
I have a large image gallery web page. I want to have a Facebook 'Like' button per image, so I set the API URL for each like button to be something like:
<div class="fb-like" data-href="http://mysite.com/gallery/photo1.jpg" data-send="true" data-width="300" data-show-faces="false"></div>
However, the Facebook API seems to not like this. The console says there is a mismatch between domains.
I am assuming this is because the actual 'Like' button is on one URL, eg: mysite.com/gallery whilst the URL it is told to like is diffent, eg: mysite.com/gallery/photo1.jpg as once I set them both to the same URL it is fine.
Does anyone know of a work around for this? Have a Facebook Like button on one page, but the page to like on another, separate page?
Yes, you can definitively add a like button for a content on another domain.
For the moment, there's a bug on Facebook Like buttons' callbacks, and likes are often not taken into account.
The issue should be solved soon : https://developers.facebook.com/bugs/457950334238629
Get the link you want to like working in the Facebook debugger and it should work:
http://developers.facebook.com/tools/debug
Update: I don't know if the question changed or I was just zoned out, but you cannot like a JPG file.
I have web page which needs users to sign-in (not FB signin though), and need to add share button to it. Issue is when I share that page, it only posts link to the wall. og image and og:description tags are ignored.
btw i am using iframe to show fb:like
Can you please let me know how to solve this issue?
You need to generate open graph tags even when user is not logged in.
Edit: +1 is working now.. only the facebook share is still broken
I've added some social buttons to this Website hgw-Hausnummern.de
The +1 button doesn't work at all and the Facebook like button only works for simple likes, but if i want to share the site (from within that dialog you see after a like) this share doesn't show up in my timeline.
What did I do wrong?
I'm not sure what's up with your Facebook Like button, but I do see one issue with your +1 button markup.
Your current +1 button markup looks like this:
<div class="g-plusone" data-size="small" data-annotation="none" data-href="www.hgw-hausnummern.de"></div>
You must specify the target website with a full URL. Try changing your code to:
<div class="g-plusone" data-size="small" data-annotation="none" data-href="http://www.hgw-hausnummern.de"></div>