martedì 6 aprile 2010

Wordpress: Facebook Connect and Role Scope issue

Recently I've developed a very funny website with wordpress and a lots of plugins.
With my surprise, after a coupe of week of correct working, some users told me that, after the login with facebook connect, all the site contents, such as menus and posts, aren't accessible.

That's is caused by an incompatibility issue between Role Scoper and wp-facebookconnect plugins.
I think that after login Role Scoper don't recognize the user level of the registred Facebook Users, and so revoke all the permission to them.

My solution consists to decrease the Wp Facebook Connect hooks execution priority to zero:

  • Open wp-contents/plugins/wp-facebookconnect/fbconnect.php

  • Find the line 93

    add_action('init', 'fbc_init_auth');

    this line add an action to wordpress init hook

  • Decrese the priority of the action adding the priority option after the action name

    add_action('init', 'fbc_init_auth', 0);

  • Save and now everything is working fine :)

Nessun commento:

Posta un commento