Like Us on Facebook

Facebook Share Button with Control Images and Text of Your Website

We all very familiar with facebook today, because facebook is the biggest social media network now a days. So this platform is perfect for advertising of your product or post, images, content of your website pages. And before share this items, you need a facebook share button. So now you may think how do you generate this button? don't worry this post is for you. From this post you can control of your images and text of your webpage using facebook share button.



This Share button lets people add a personalized message to links before sharing on their timeline, in groups, or to their friends via a Facebook Message.


Full Code
Copy and Paste this below code to your website and Adjust the content.
 
<html>
<head>
    <title>
Your Website Title</title>
    
    <meta property="og:url"           content="http://www.your-domain.com/your-page.html" />
    <meta property="og:type"          content="website" />
    <meta property="og:title"         content="Your Website Title" />
    <meta property="og:description"   content="Your description" />
    <meta property="og:image"         content="http://www.your-domain.com/path/image.jpg" />
</head>

<body>

    <!-- Load Facebook SDK for JavaScript -->
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <!-- Your share button code -->
    <div class="fb-share-button" 
        data-href="http://www.your-domain.com/your-page.html" 
        data-layout="button_count">
    </div>


</body>
</html>

Posted By UandBlog

UandBlog is a Global Leading source of Finance, Health, Lifestyle, Technology, Gaming and Programing and other information, it is a fastest growing blog for all , for latest post or information like us on facebook , follow on Twitter, Google+ and Pinterest.

Comments ( 0 )

    Leave a comment..

    Click to login.