Blog

Learn simple steps to Share your blog over social media.

HOW TO SHARE BLOG/INFORMATION OVER SOCIAL MEDIA AS A PART OF DIGITAL MARKETING ?

Created by Krishna Mehta & Shikha shrivastav on Date: 24/08/2020

To Share blog or Information over social media like facebook, twitter or linked in for degital marketing of your project, You need to follow following steps  : 

STEPS TO SHARE INFORMATION OVER SOCIAL MEDIA  : 

STEP 1   :   You need to add following lines in webpage in which you want to add facebook, twitter or linkedin liks for shareing blog or information, under head section.

<meta property="og:url" content=""/>
<meta property="og:image" content=""/>
<meta property="og:title" content="" />
<meta property="og:description" content="" />

Explanation   :  

  • In above coding, first line display webpage link which you want to share Over social media, as value of content attribute.

    eg.   If I want to share blog16.php webpage of website kingsoftwareuk then I nned to write as   :  
    <meta property="og:url" content="http://www.kingsoftware.co.uk/blog16.php"/>


  • In above coding, Second line display Image which you want to share Over social media. You need to put link of image as a value of content attribute.

    eg.   eg. If I want to give tile to blog which i want to share over social media that Codeigniter Blog, then I nned to write as   :  
    <meta property="og:image" content="http://www.kingsoftware.co.uk/kingsoftware/xyz.jpg"/>


  • In above coding, Third line display Title of your information/blog, which you want to share Over social media, as value of content attribute.

    eg.   If I want to share xyz.jpg image under kingsoftware folder of kingsoftwareuk website then I nned to write as  :  
    <meta property="og:title" content="Codeigniter Blog"/>


  • In above coding, Fourth line display Discription of webpage which you want to share Over social media, as value of content attribute.

    eg. <meta property="og:description" content="This blog explain you how to do programming in Codeigniter."/>


STEP 2   :   To share above information over social media, you need to add social media button or images on that webpage through which you want to share blog/information and using anchor tag give link to anchor tag, of that webpage Where above code is mentioned.

eg.   if you want to share above information from webpage blog16 of website kingsoftwareuk so, you need to write all above code on blog16.php webpage of kingsoftwareuk website in head section and you need to write following code at the end of page above footer section under body section or anywhere in body section where you want to set facebook, twitter or linked in link.

  • <a id="facebook" href="http://www.facebook.com/sharer.php?u=http://www.kingsoftware.co.uk/blog16.php" target="_blank">
    <img src="https://simplesharebuttons.com/images/somacro/facebook.png" alt="Facebook" />
    </a>

  • <a id="twitter" href="https://twitter.com/share?url=http://www.kingsoftware.co.uk/blog16.php" target="_blank">
    <img src="https://simplesharebuttons.com/images/somacro/twitter.png" alt="Twitter" />
    </a>

  • <a id="Linkedin" href="https://linkedin.com/share?url=http://www.kingsoftware.co.uk/blog16.php" target="_blank">
    <img src="https://simplesharebuttons.com/images/somacro/linkedin.png" alt="Linkedin" />
    </a>