Share Link with Image on Facebook

Asked

Viewed 5,730 times

2

I would like to know how to paste a link in a Facebook post and it show an image. For example: if I paste the Twitter link into a post, it puts an image, followed by the title and description of the URL page (in this case, Twitter). How do I get this image on my link too?

inserir a descrição da imagem aqui

4 answers

2


Using targets og:

<meta property="og:url"                content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" />
<meta property="og:type"               content="article" />
<meta property="og:title"              content="When Great Minds Don’t Think Alike" />
<meta property="og:description"        content="How much does culture influence creative thinking?" />
<meta property="og:image"              content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" />

https://developers.facebook.com/docs/sharing/webmasters

  • 1

    Buddy, I was wearing these tags, but they weren’t working... Then I downloaded the link you passed and saw that I only needed to debug the URL (through https://developers.facebook.com/tools/debug/ ) to update the data... Now everything is working perfectly as I needed it. THANK YOU VERY MUCH! D

0

For this, you need your link to have an image in your content. Facebook automatically picks up the image in your page content and attaches it to your fb post view.

But you can also change the image, facebook gives you this possibility too.

It turns out that if it is a blog post, it seems that there is a cache either from facebook or from the blog server that, when trying to post on facebook immediately after the post post, it does not recognize the image, having to wait a while to publish.

But having the image recognized, you can keep it or change it as well, at your discretion.

  • Actually there are no images in the link... It is an online app based on a canvas... Then ends up not having images... If I put an image and via CSS configure it with Hidden display Facebook can identify it?

0

  1. Relate the item

Remaking My Answer First you need to understand how Facebook works with canonical URL. ex you have a page www.suapagina.com/faleconosco.php and inside this page you have a lot of meta tag theoretically facebook seeks the meta tag on this page and also the thanks for the collaboration of colleagues I am career nurse but I work with systems development thanks to knowledge sharing spaces

-2

I had this same problem to solve everything starts in https://developers.facebook.com/tools/debug/sharing/? q=https%3A%2F%2Fwcarros.com%2F33 this beast checks and erases the cache of facebook if it does not find a tag og: it uses a common tag and the image I put an image in the head and gave display name to her facebook recognized but the such tag og: he didn’t even recognize 2 days poking around and nothing the solution was that and has more you need to have a canonical URL that points to where the tags are ex vc has an index page and shares that page you need to put the tag where the canonical URL points may even be to another page but it is where facebook will fetch the title the description and the url beyond the image if you have not declared certificate tag he chooses the first text tagged find or be a mess you share an orange it shows a bike

  • I didn’t really understand your text. Edit it by placing the punctuation to make it easier to understand, because it’s hard to understand what you meant. I was able to understand that you have to see the canonical URL and og tag and that if this is not correct, it will mess up. But I still couldn’t keep up with your text. Anyway, welcome to our community.

  • Ah, just so we’re clear, I’m not the one who denied your answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.