
![]() ![]() |
| blogos |
Message #1
|
| Newbie
Reputation: 0 ![]() Group: Guest Posts: 0 ICQ:-- |
To Add The Facebook Like Button On Wordpress it's depends upon your requirement, Whether or not you setup a custom system to handle programmatic updating of your News Feed, you still need the basic meta tags in place. This will ensure that you can Like your own pages, and then be able to Administer and post updates via them. I recommend Like plugin in the WordPress plugin repository. No News Feed updates necessary? Perhaps you use a Fan Page instead. Or perhaps you are not interested in feed updates at all. In this case, the implementation is pretty simple. Here, you have two choices as well. The xfbml advantage It’s more complex, but when the user presses the Like button, a small comment box is display. If a user enters a comment, this not only increases the chance of displaying in user’s friends News Feed, but also is displayed more like a normal update posted by the user. This makes it significantly more useful especially if you’re relying on News Feed exposure alone. PangPond has a nice target="_blank">article explaining the difference. To setup on WordPress, you will have to register a facebook application and then use the Like plugin. Quick, and less complex Or you can quickly get it done. Open single.php and place the following code where you want the Like button to show. <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&am p;action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe> Note that you can generate the same code at Facebook but replace href query parameter with a value of <?php echo urlencode(get_permalink($post->ID)); ?> Save, close and test. Goodluck All |
![]() ![]() |
1Pers. read this topic (guests: 1)
Users: 0
| Now: 22 May 2012 06:45 |
DLE Forum v.2.3 © 2012 Pocketx.Ru











