I am having problems with the facebook services for the developer. When I work at localhost, it's fine, the issue is when I test it on the host (hostinger). The most visible is the comment box that does not appear directly. But the share button and I like it does not work either
The url in question is emap.96.lt
In the body
<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/es_ES/sdk.js#xfbml=1&version=v2.7";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
And in article:
<article class=" col-xs-12 col-sm-6 col-md-8">
<div class="panel panel-default">
<div class="panel-body">
<h4>{{$articulo->titulo}}</h4>
@include('front.template.partials.face-me-gusta')
<hr>
<h5>{{$articulo->copete}}</h5><br>
<img src="{{ asset('img/articulos/'.$articulo->imagen->nombre) }}" alt="..." class="img-responsive">
<br>
{!!$articulo->contenido!!}
<hr>
<h5>Si te gusto, Compartilo:</h5>
@include('front.template.partials.face-compartir')
<br>
<h4>Comentarios:</h4><hr>
<div class="fb-comments" data-href="{{'https://emap.96.lt/articulos/'.$articulo->slug}}" data-numposts="5"></div>
</div>
</div>
</article>
I use laravel 5.3, blade. A slug for friendly routes.
From localhost if I try to print the route. I can do it, but when I want to print somewhere in the url to see what it gives me back. Nothing comes out
{{ 'https://emap.96.lt/articulos/'.$articulo->slug }}
By decanting the problem is in the url I think. But it is rare that I could not even print the url.