FaceBook Like Button

I was looking into how to add a FaceBook Like button to pages on my own web site. I found the form to create buttons easily enough but when I tried to use it I got a message saying that I need to verify my FaceBook account first.

I looked up how to verify my account and it said that I need to supply either my mobile phone number or credit card number to verify the account. Unfortunately neither of those options will actually accept “NONE” as acceptavble values.

Does anyone know what someone without a mobile phone or credit card is supposed to enter in orcer to verify their FaceBook account?

I did try entering my regular phone number and it accepted that but the next page asks for a confirmation code to be entered and no one rang me to tell me what that code is.

I’ve added Like buttons before and not heard of this kind of thing, but I guess I haven’t done it for my own FB account (only for clients, though no one has mentioned the verification thing). :frowning: Your Like button seems to work anyway, as I tried clicking it. Maybe you can just ignore it?

Off Topic:

Eek! Never thought I’d see Felgall using an iframe. :smiley:

Perhaps a Google voice account to get the text [it’s not a call]?

That’s a different like button from the one I am talking about. That one is for Likes on the FaceBook page it links to whereas the one I am asking about is for Likes on the current page.

I don’t really have any control over generated code that included iframes but that particular button is just there as an experiment prior to my writing up a few pages on FaceBook.

That’s only available in one country on the other side of the world. It isn’t available here.

Hum. I’ve never been forced to validate an account with Facebook although it has been suggested. You may find a cancel / skip option if you hunt around the page.

Sounds like they’ve decided those two fields are enough to include most people but clearly not all. That leaves you emailing their support and hoping for a reply.

There is other code you can add to your page to show how many times it’s been liked, and adds a link to FB to that specific page. Is that what you mean? It’s pretty simple code. You just need a way to grab the current page URL.

<iframe src="http://www.facebook.com/plugins/like.php?href=[COLOR="Red"]http://www.mysite.com/blog/a-post[/COLOR]&amp;layout=standard&amp;show_faces=false&amp;action=like&amp;colorscheme=light"
        scrolling="no" frameborder="0"></iframe>

How I grab the current page URL depends on whether I’m using a CMS or whether it’s a static site.

Apologies if this is not what you are asking about.

Thanks Ralph

That might be the code I am after. I’ll try it out when I get the chance.

Thanks again Ralph. That code does what I was wanting it to do.

Of course I still can’t verify my FaceBook account and so anywhere else that requires a verified FaceBook account is still going to reject me. Of course looking at the way FaceBook is set out I have reached the conclusion that no real people were involved in the creation of such a jumbled mess. Those responsible for creating FaceBook are obviously Bots as the pages are obviously designed so that only a Bot can find anything on their site.

As a website designer I have been able to easily add the ‘like’ button to my clients websites. Just tried to do it today and it’s asking me to ‘verify as a developer’ which requires either my mobile number or credit card. I’m not keen on providing either.

I’m finding Facebook so frustrating as processes keep changing all the time. Previously there was a way to ‘customise’ the page for business clients and I find that has now changed and not supported anymore.

Yes, I’ve not been able to use FB for years now. Just too confusing and intrusive. Perhaps Google Plus will be better. Surely Google wouldn’t be so intrusive. :shifty:

O dear, so this must be a new thing, as I’ve never had to do that. It certainly would put me off.

Using the code you provided is the workaround for that since that question appears to be the same as my original question.

Hi Ralph and felgell…same issue i am also facing with my facebook like button.

I have a static website which uses ssi. Now that i want to add fb like on every page of my website, i need to go to every page and add facebook iframe or fbml code there…is there anyway out that i passes some code or javascript in ssi file so that it pick ups the current url of the static page for fb like buton.

<iframe src=“http://www.facebook.com/plugins/like.php?href=SOME-DYNAMIC CODE-THAT-I-CAN PASS-HERE-?-forstatichtmlpages&layout=standard&show_faces=false&action=like&colorscheme=light”
scrolling=“no” frameborder=“0”></iframe>

Thanks a lot…in advance for your help and suggestions…

i use add this to upload fb and other button

Yeah…that’s another way of doing it…but i have seen many site doing in themselves.

That’s why i want suggestions from experts out here for my issue posted above…Thanks a lot guys.

I don’t know a lot about SSI, so sorry that I can’t help you on that.

However using PHP, you would only need a few lines of very simple code to personalize the button. I would store the text of the page title and the metadescription in a variable and then output these values in the Facebook code.

In addition to that I would probably store the code of the button itself in a separate file and integrative it in the page via include. As Facebook changes quite often this would make it easy to modify the code of button without having to do a search and replace on all the files of your site.

Similar to what Fränk said, you could put this at the top of each page to get the page URI:

<?php $uri = htmlspecialchars($_SERVER['REQUEST_URI']); ?>

and then do this to the FB code:


<iframe src="http://www.facebook.com/plugins/like.php?href=[COLOR="#FF0000"]<?php echo $uri ?>[/COLOR]&layout=standard&show_faces=false&action=like&colorscheme=light"
        scrolling="no" frameborder="0"></iframe>

Put this code into a single PHP include file and link to it on any page where you want the FB code to appear. The URI of the page will be included in the code.

Assuming this file is in a folder in your root directory called /includes/, that link might look like this:

<?php include $_SERVER["DOCUMENT_ROOT"] . "/includes/facebook.php"; ?>

Hi ralph, Thanks a lot for your reply…but mywebsite is in pure static html. I tried this thing but it does not works…basically the .php include doest not execute on the server.

Kindly please provide some more help in this…my site is simple static html…Thanks a ton for your reply :slight_smile:

You can run PHP on .html pages, but the ideal is to have .php pages. Anyhow, see if this link helps:

http://pageaffairs.com/web/php/php-on-html-pages/

Hi Ralph,

Thanks for your reply…but it doest not worked…I tried alomost everything…but i am jealous about some websites like this - http://festivals.iloveindia.com/navratri/date.html (like fb button at bottom) because they have done the same thing with static html webpages but the burning question for me is HOW ??? Can’t anyone tell me how they have done this…like fb button at the bottom

Can you please help in in this ?? Thanks a lot for your help…guys