Facebook Plugin for Wordpress

Asked

Viewed 155 times

0

I installed the facebook plugin in wordpress a few months ago and it worked correctly. However, for a month now, a problem has hindered my posts and I can’t publish anymore. When posting something in wordpress and automatically trying to post on facebook, it generates the following error:

Failed posting to MY NAME Timeline. Error: {"message":"An unexpected error has occurred. Please retry your request later.","type":"OAuthException"}

Does anyone have any information about this?

Facebook Plugin for Wordpress

  • Updated the plugin? It requires special publishing permissions via Open Graph, which you need to release in the application, example.

  • Thanks @Victormendonça, but the error was resolved without any adjustment. I believe the problem was on facebook, since I did not update any plugin in wordpress or facebook.

1 answer

1

I recommend you create your Facebook plugin on Facebook itself would look something like this

<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/all.js#xfbml=1&appId=seu id";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="http://seu site/?p=<?php the_ID(); ?>" data-width="692" data-numposts="5" data-colorscheme="light"></div>

The code is already explained, width date-numposts post number etc. Its differential is the ?p=<?php the_ID(); ?> after the link of your site with this it fixes that bug of showing on all pages the same comments.

  • Gratefully @Souza, but the error was resolved without any adjustment. I believe that the problem was with facebook, although it seems distant.

Browser other questions tagged

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