I can not make social facebook plugins go on my site

1

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.

    
asked by Cidius 25.09.2016 в 23:07
source

1 answer

0

I found the solution to this problem. Even though I still can not walk the comment box correctly. But the other components. like the "like" or the "share" if.

It's a bit unusual. But it turns out that I was testing in a shared Hosting (hostinger) my site and doing these tests.

When I checked in the code generator that provides Facebook comments, note that placing the URL of the hosting (.96.lt). In the preview did not appear the displayed chat (the same thing that happened in my site).

So it occurred to me to change the domain, even in hostinger, but .hol.es, and it was like that that the comment box appeared and all the components go perfectly

Although the comments when I want to place one, now I get "Error in the message"

    
answered by 27.09.2016 в 17:20