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 :)

1 commento:

  1. Besides the nice selection of on line casino games, Grosvenor provides craps, daily jackpots, and sports betting. The website offers betting odds for football, rugby, horse racing, tennis, cricket, golf, and more. Dozens of proven betting methods have been developed that apply to desk games. The appropriate 메리트카지노 choice} when enjoying in} roulette, for example, remains the Martingale.

    RispondiElimina