Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Facebook Like button for website

Featured Replies

He guys,

 

This is probably a very dumb question, but I can't seem to find the answer, so this is my last resort.

 

I'm trying to place a Facebook Like button on my website. The only thing I want, is that when users click the like button, a message on their newsfeed appears with something like "Sam just liked this website..". The thing is.. I thought this happened automatically. ("The Like button lets a user share your content with friends on Facebook. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website." - http://developers.facebook.com/docs/reference/plugins/like/) But when I click my iframe button, nothing appears! What am I doing wrong?

 

I have placed the following code in the <head>

 

<meta property="og:title" content="title" />
<meta property="og:type" content="athlete" />
<meta property="og:url" content="mywebsite.nl" />
<meta property="og:image" content="image.png" />
<meta property="og:site_name" content="sitename" />
<meta property="fb:admins" content="myfbaccountid" />
<meta property="og:description"
         content="description of my website"/>

 

My iframe:

 

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.mywebsite.nl" scrolling="no" frameborder="0" style="border:none; width:300px; height:80px"></iframe>	

Edited by SamP

He guys,

 

This is probably a very dumb question, but I can't seem to find the answer, so this is my last resort.

 

I'm trying to place a Facebook Like button on my website. The only thing I want, is that when users click the like button, a message on their newsfeed appears with something like "Sam just liked this website..". The thing is.. I thought this happened automatically. ("The Like button lets a user share your content with friends on Facebook. When the user clicks the Like button on your site, a story appears in the user's friends' News Feed with a link back to your website." - http://developers.facebook.com/docs/reference/plugins/like/) But when I click my iframe button, nothing appears! What am I doing wrong?

 

I have placed the following code in the <head>

 

<meta property="og:title" content="title" />
<meta property="og:type" content="athlete" />
<meta property="og:url" content="mywebsite.nl" />
<meta property="og:image" content="image.png" />
<meta property="og:site_name" content="sitename" />
<meta property="fb:admins" content="myfbaccountid" />
<meta property="og:description"
         content="description of my website"/>

 

My iframe:

 

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.mywebsite.nl" scrolling="no" frameborder="0" style="border:none; width:300px; height:80px"></iframe>	

 

 

Hello, what happens when you click the Like button, does the button change to show that you like the page?

 

I found that it didnt always show on others news feeds, but I think its worth reading up on Facebooks Edgerank Algorithm.

 

Although, if your button isnt changing, then something could be wrong (are you able to provide a link to your page in question?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.