-5

I am sharing a blog to social networks and while sharing it's picking the random images instead of actual image. Sharing URL's that i am using are:

<div class="share-bar-link icon-share-facebook" data-share-href="https://www.facebook.com/sharer/sharer.php?u=URL_TO_SHARE?cid=share_fb"></div>

For example, in the below image (I want to share that blog to any social networking site) picture1

But it's taking the image as (Wrong picture is being taken) picture2

Krzysztof Janiszewski
  • 3,763
  • 3
  • 18
  • 38
Adarsh
  • 19
  • 2

1 Answers1

-1

To do this you must have access to code of your blog post. In head section there are meta tags which define the way you share something on different sites. It is called OG tags and can also be done through some extensions Here is simple example of meta tag changing.

<meta property=“og:image” content=“http://example.com/example.jpg” />

<meta property="og:image:width” content="180" />

<meta property="og:image:height” content="110" />

For more information visit this link

https://yourblogworks.com/social-share-image/

Community
  • 1
  • 1
Hannan Butt
  • 304
  • 4
  • 11