I'm trying to make my site interact with facebook. I'm interested more than anything, the issue of sharing, but this problem itself escapes the plugin that provides facebook I think.
In case both with the share button or manually stick the link, facebook sometimes does not show me the main image of the article I want to share. I say good, sometimes, because for certain articles it does it correctly, and in other so many it shows me other images of my site that have nothing to do with the article.
Is this random? or there is some way that I can detect the image. I've seen that in wordpress they have something called a prominent image, and they solve it like that
<article class="col-xs-12 col-sm-12 col-md-8">
<ol class="breadcrumb breadcrum">
<li><a href="{{ route('front.index') }}">Home</a></li>
<li><a href="{{route('front.search.categoria',$articulo->categoria->nombre)}}">
{{$articulo->categoria->nombre}}
</a></li>
</ol>
<div class="panel panel-default">
<div class="panel-body">
<span aria-hidden="true" class="glyphicon glyphicon-time">
</span>
{{$articulo->created_at->diffForHumans()}} |
<span aria-hidden="true" class="glyphicon glyphicon-pencil">
</span>
{{$articulo->autor->nombre}}
<br><br>
@include('front.template.partials.social.face-me-gusta')
@include('front.template.partials.social.compartir-wapp')
<br>
<span class="titulo"><b>{{$articulo->titulo}}</b></span>
<br>
<h5>{{$articulo->copete}}</h5>
<hr>
<img src="{{ asset('img/articulos/'.$articulo->imagen->nombre) }}" alt="" class="img-responsive">
<br>
{!!$articulo->contenido!!}
<hr>
@include('front.template.partials.perfil-autor')
<hr>
<h4>
Si te gusto, Compartilo:
@include('front.template.partials.social.face-compartir')
@include('front.template.partials.social.compartir-wapp')
</h4>
<hr>
@include('front.template.partials.social.face-comments')
</div>
</div>
</article>