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 iframe help

Featured Replies

Hi Guys,

 

I'm in need of some help, I'm tring to to a like button on to a web page using iframes

 

The code I have is

<div class="social1">

<script type="text/javascript">

var urlToLike = 'http://www.facebook.com/pages/Real-Motoring-Tuition/142963339069572';

if (urlToLike == 'http://www.facebook.com/pages/Real-Motoring-Tuition/142963339069572') {

urlToLike = window.location.href;

}

urlToLike = encodeURIComponent(urlToLike);

 

var font = encodeURIComponent('inherit');

 

 

document.write ('<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FReal-Motoring-Tuition%2F142963339069572&send=false&layout=standard&width=300&show_faces=true&action=

like&colorscheme=light&font=segoe+ui&height=80" scrolling="no" frameborder="0" style="border:

none; overflow:hidden; width:300px; height:56px;" allowTransparency="true"></iframe>')

</script></div>

 

Every time i put it through the testing server, it displays this page could not be foun.

 

Can anyone help

Edited by Sp00kie13

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.