Plugin Comments Facebook

Asked

Viewed 391 times

1

Buenas Guys, someone has already had problems with the plugin’s comments Facebook? I integrated to the firm’s website as described on the platform, it appears on the page but does not let anyone comment, every time I try to comment it returns:

"Sorry, this feature is not available at the moment"

and does not save the comment, the strange thing is that he comes to write the comment, but 1 second later appears the message I quoted above.
I put on the Head of the page the code they gave me:

<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/pt_BR/sdk.js#xfbml=1&version=v2.9&appId=315825798851463";
  fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
</script>  

And where I want the commentary to appear:

<div class="fb-comments" data-href="http://www.weisetech.cf/website/pageswebsite/noticias.php" data-width="900" data-numposts="5"></div>

Can test if you wish (I’m happy to hehe) at the provisional address that is: weisetech.cf/noticias

I found nothing about problems with the plugin on Google, I turn to friends from Stackoverflow to save me once again from this.

SOLVED, people there was no mistake in the code, but as I was testing in a free domain, I think facebook blocks somehow the insertion of comments, ai testei no . with this SAME code that is there and worked, Ufa! A BIG THANK YOU to my friend Paulo who with the comments below helped me greatly to simplify this insertion of comments, once again, many thanks to all who tried in some way help me as Edson and Victoria, hug!

  • The facebook plugin has some conditions to work. That you have your ID key, and that the comment page is registered in the tool. Have you checked this?

  • I have not read anything about key ID and nothing also about the page have to be registered, have any support link on?

  • Go to this link https://developers.facebook.com/docs/javascript/quickstart Note this paragraph: ".... This code will load and initialize the SDK. You must replace the value in your-app-id by the identification number of your own Facebook App. Find this identification number using ...." It’s not your fault! The documentation is poorly distributed anyway.

  • One more detail: I don’t know if the API is still accepting HTTP

  • I registered there and already got the ID, they gave me this ID: 315825798851463

  • The way I put only the numbers is correct Paulo? < 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 = 315825798851463; js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.9"; fjs.parentNode.insertBefore(js, fjs); }(Document, script, facebook-jssdk)); < /script>

  • There’s room there between the ID and the number. You have to take

  • I leave: js = d.createelement(s); js.id=315825798851463; ?

  • Reading your code better, I saw that this was not a problem (the space, you are passing a whole), but I am seeing other suspicious syntaxes. Did you put this code here? <div class="fb-comments" data-href="https://developers.facebook.com/docs/plugins/comments#Configurator" data-numposts="5"></div>

  • <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 = 315825798851463; js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.9"; fjs.parentNode.insertBefore(js, fjs); }(Document, script, facebook-jssdk)); </script> and then where I want the comments to appear: <div class="fb-comments" data-href="http://www.weisetech.cf/website/pageswebsite/noticias.php" data-width="900" data-numposts="5"></div>

  • facebook has already given me the data-href, I have to put this support link you gave me: Developers.facebook.com/Docs/plugins/comments#con figurator sera?

  • I still can’t make the comments follow code as is:

  • <div id="fb-root"></div> <script> window.fbAsyncInit = Function() { FB.init({ appid : '315825798851463', xfbml : true, version : 'v2.9' }); FB.AppEvents.logPageView(); }; (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/pt_BR/sdk.js#xfbml=1&version=v2.9&appid=315825798851463"; fjs.parentNode.insertBefore(js, fjs); }(Document, script, facebook-jssdk)); </script>

  • I have not yet succeeded to be able to comment... HELPPPP ;/

  • You have to go to your facebook administrative area and uncheck the development mode.

  • Yes, but this already as a public friend Paulo: follows print http://imgur.com/a/CwsDO

Show 12 more comments
No answers

Browser other questions tagged

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