Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

We have a 'Website Page' on Facebook that people like and we post all our news on it etc.

We also have a 'like' button on our website which people click on. When they click on it it seems to publish our page onto their wall which is great.

However, we would like it so when people press 'like' on our website, it 'likes' our Facebook website page. Both counters are different, on our Facebook website page we have ~350 likes, on our website we have ~280 likes they seem to be individuals.

Any way we can make people 'like' our website page on FB?

share|improve this question
1  
The answer to my question webmasters.stackexchange.com/questions/15299/… will probably help you. –  Peter Taylor Jul 26 '11 at 13:46
    
@Peter thanks, so I have to use two separate links? –  Tom Gullen Jul 26 '11 at 15:34
    
The solution I went for in the end was to have a Like button on most of the pages and a Like box instead on the front page. It's your call whether to do that or have the two side by side. –  Peter Taylor Jul 26 '11 at 16:05
    
@Peter thanks, is there any special code for a like box, or is it simply just a link to the page itself? I can't find much info on it. –  Tom Gullen Jul 26 '11 at 16:09
1  
developers.facebook.com/docs/reference/plugins/like-box - and don't forget to up-vote Nick's answer to the question, which is where I got that URL from. –  Peter Taylor Jul 26 '11 at 16:26
show 1 more comment

1 Answer

In the Like Button code there is a place to enter the URL of the page to be liked. If left blank it defaults to the URL of the page the button is being displayed on. If you put the URL of your Facebook page into the Like Button code it should allow you to have a like button for your Facebook page on your website which would show the number of people that like your page on Facebook.

<fb:like href="http://www.facebook.com/YourPage" send="false" width="450" show_faces="false"></fb:like>

That would be for the xfbml implementation, but you can get the code for the other versions here: http://developers.facebook.com/docs/reference/plugins/like/

Just change the URL to the URL of your Facebook page.

I have this working on a website already.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.