Add Facebook Like Button using XFBML WITHOUT plugins
-
I am a bit of a noob to WordPress and am into a steep learning curve. This forum has been helpful in other areas. I searched both the forums and Google for how to make Facebook like buttons. I found a lot of information about plugins but I did not want to use a plugin and did not find the answer I was looking for. If this has been posted somewhere else I apologise.
To get your code to create a Facebook like page for your Facebook site go here first to get your code:
https://developers.facebook.com/docs/reference/plugins/like-box/
WordPress does not support iframe so use the XFBML code. Copy the code into a text editor for later use and save it. This code can then be pasted into a widget, a page or a posting. Make sure you past it using the HTML tab of your post or page.
EXAMPLE: LIKE A FACEBOOK SITE USING XFBML-WITHOUT FACES:
<div id="fb-root"></div><script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="https://www.facebook.com/YOURFACEBOOKSITE" width="292" show_faces="false" border_color="" stream="false" header="true"></fb:like-box>
You can also create a Facebook like button so that people can like your blog page or posting by using similar code:
EXAMPLE: LIKE A WORDPRESS SITE, PAGE, OR POST USING XFBML:
<div id="fb-root"></div><script src="https://connect.facebook.net/en_US/all.js#appId=109755265792790&xfbml=1"></script><fb:like href="www.YOURWORDPRESS.com" send="true" width="180" show_faces="false" action="like" font=""></fb:like>
NOTE that the first code uses the Facebook web site address and the second one uses your WordPress web site address. I hope this helps.
- The topic ‘Add Facebook Like Button using XFBML WITHOUT plugins’ is closed to new replies.