Top Ad unit 728 × 90

Excellent Tutorials to Utilize the Power of WordPress and Facebook


Facebook can play a crucial role in your blog’s growth as it is one of the largest social media network on the web. In this article we will be sharing some of the  most valuable tips and tutorials that will let you utilize the power of Facebook and WordPress to your advantage.
We will organize this tutorial in the method from easiest to hardest, so bare with us.
1<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" target="blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Share this article on Facebook" /></a>
You will need to place this snippet in your single.php and/or page.php. When your users click on this button, it will automatically open a facebook sharer link which will let them share your article with their friends on facebook. You will need to upload a facebook icon to your theme image directory.
Source
You probably have seen the popular tweetmeme retweet button on many blogs. This is the similar button except, this is for facebook. It keeps an active count of how many times the page has been shared, so it can be used as a substitute to the hack shared on the top.
You will need to add the following code in your single.php and/or page.php
1<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
The code above will show a large facebook sharer button with the count. But if you want to display a smaller button, then you will need to paste the following code:
1<script>var fbShare = {
2url: 'http://www.wpbeginner.com',
3size: 'small',
4google_analytics: 'true'
5}</script>
6<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
This will show a small tweetmeme like button that we have on our post page next to the Related articles at the end of each post.
To learn more parameters refer to the original source.
Excellent Tutorials to Utilize the Power of WordPress and Facebook Reviewed by Unknown on 3:21 AM Rating: 5

No comments:

All Rights Reserved by Boca Raton Real Estate © 2014 - 2015
Powered By Blogger, Designed by Sweetheme

Contact Form

Name

Email *

Message *

Powered by Blogger.