Facebook Like Button error - facebook

The facebook 'like' button isn't working on my webpage when i upload it to the web. It works perfectly on my computer though. Any guesses as to why this is happening ?
http://savetheearth.99k.org/pledge.htm is the URL

i think the problem is in the url you have provided. As i check in your page source the i frame has following code :
<iframe src="http://www.facebook.com/plugins/like.php?href=earthsave.tk&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
Where it should have been:
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fsavetheearth.99k.org%2Fpledge.htm&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
the problem was in your url:
src="http://www.facebook.com/plugins/like.php?href=earthsave.tk

The like button shows up for me just fine - I'm not even logged into facebook.

Two reasons we have found for this:
Simple Redirect:
If your site page has a redirect on it you will get an error.
www prefix redirect:
Facebook always tries to access your domain without the www prefix. If you have an auto redirect to send users from "example.com" to "www.example.com" - even if you pass the url to facebook as "www.example.com", the crawler tries to access the url without the www which results in an error.

Related

facebook like button not appearing when online

Hi my facebook like button not appearing is not appearing online when hosted on my hosting provider but offline in wamp server it is working fine. my code is as follows:-
<iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FGallantconcept&width=100&layout=button&action=like&show_faces=false&share=false&height=35&appId=657033221004925" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:35px;" allowTransparency="true"></iframe>
Anyone can explain why?
It is a plugin problem for my chrome

Facebook Like button posts my webhost thumbnail and URL on timeline

So, I've run my url through the facebook debugger and everything comes out right. if i post my url in a status, the correct thumbnail and description comes up. However, the like button on my site results in my web host url and thumbnail showing on facebook.
My url is adammoritzmusic.com
My iframe code:
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fadammoritzmusic.com&width=200&height=35&colorscheme=dark&layout=standard&action=like&show_faces=false&send=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:35px;" allowTransparency="true"></iframe>
help?
There's 3 Solutions You can follow:
#1
Use http://adammoritzmusic.com/Home.html (without https) because when you adammoritzmusic.com Facebook will use your index.html which redirects to Home.html
(Facebook Like button has a bug, the same domain has two different counts of likes one for http and the other for https)
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fadammoritzmusic.com/Home.html&width=200&height=35&colorscheme=dark&layout=standard&action=like&show_faces=false&send=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:35px;" allowTransparency="true"></iframe>
#2
Use Index.html instead of home.html or just use .htaccess file to make home.html as your default index file:
DirectoryIndex Home.html
#3
Create a Facebook fan page, this would the fastest and easiest solution.

facebook like box does not work

I have a facebook fanpage: www.facebook.com/derwettprofi
I wanted to create a like box. Although I use the code generated by facebook it does not work. I created the following simple html page:
<HTML>
<BODY>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fderwettprofi&width=292&height=62&colorscheme=light&show_faces=false&header=false&stream=false&show_border=false&appId=567203116676137" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe>
</BODY>
</HTML>
But when called in the browser it looks like this:
I do not understand what is happening? The response is empty. Why does it not work?
You need to put the http:// in front of www. This happened to me as well
it is because your website is on localhost. Try uploading it to an online host, that should solve your problem.

Facebook like button stopped working

I started having problems a couple of days ago with the Like button on my Facebook application page. It has been working for almost 6 months but stopped working yesterday. When I am logged into my own Facebook account I see the 'Like' count, but if I am logged out or logged in as anyone who hasn't already 'Liked' my app, it doesn't work. They see the button as if nobody has 'liked' it yet and when they click it, it seems to reset every time.
The URL I am trying to like is an APP URL. My code is pasted below.
<iframe src="http://www.facebook.com/plugins/like.php?app_id={myAppId}&href={myAppURL}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=dark&font&height=21"
scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:450px; height:21px;"
allowTransparency="true">
</iframe>
I've tried a few variants of this code, but I can't seem to get it to work. Even when I go to the page that generates 'Like' button code on Facebook and give it my URL, I see the same problem. When I click the button I get the text "Error" in red to the right of the button. I've seen an article on Mashable that this same problem happened about a year ago for some people...
Try replacing the http:// part of the src attribute with //
So it should look like this:
<iframe src="//www.facebook.com/plugins/like.php?app_id={myAppId}&href={myAppURL}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=dark&font&height=21"
scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:450px; height:21px;"
allowTransparency="true">
</iframe>

Facebook url likes to page like

Today I have a like-button set up for the pages url. In the near future I might
Want to create a facebook page or group for the site.
Is there a way to move or sync the likes for the url with the page. Or will they always be separated and thus the gained like count lost?
You can change your old code for like button to have like link for the group page
<iframe src="http://www.facebook.com/plugins/like.php?href=
"your page link"
&layout=standard&show_faces=true&width=450&action=like&font&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
http://developers.facebook.com/docs/reference/plugins/like/