Skip to content

Basic Facebook Integration

April 9, 2013

I had to use a Like Facebook Integration for a website, however after testing out and placing a URL to like button, the code given from Facebook didn’t work. However after finding a useful StackOverflow solution, I found that a simple IFrame code can do the same thing without using Facebook’s script code underneath the body tag. Here it is: –

For some reason, WP is suppressing anything to do with the word iFrame, even in the code tag!!! So the extra attributes you need to add into the iframe are src=’https://www.facebook.com/plugins/like.php?href=www.facebook.com’ scrolling=’no’ frameborder=’0′.
Replace i with iFrame

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: