Facebook comment plugin


i using plugin on website. enable people write comment on fb comment box. possible include in html?

this link give me comment plugin code: https://developers.facebook.com/docs/plugins/comments#configurator

 

here example:

<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/tl_ph/sdk.js#xfbml=1&version=v2.7";

  fjs.parentnode.insertbefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>

 

<div class="fb-comments" data-href="https://developers.facebook.com/docs/plugins/comments#configurator" data-numposts="5"></div>

 

at first have error here. changed line:

js.src = "//connect.facebook.net/tl_ph/sdk.js#xfbml=1&version=v2.7"; to  js.src = "https://connect.facebook.net/tl_ph/sdk.js#xfbml=1&version=v2.7";

 

the error disappeared still comment box doesn't show.

they should not run locally , need host html file on server.

 

if hybrid app don't have host, how can make show comment box?



More discussions in PhoneGap


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Animate - problem with duplicating scripts after loop

Why is os_ViewContainer running?