Facebook Tab Manager 3.03 – Simplifying “Add to Page,” Adding Custom Capabilities
With the release of Facebook Tab Manager 3.0, I introduced a more flexible scheme for assigning user editing capabilities. A couple of bug fixes later, we’re now at 3.03, which also puts the the Add to Page link (for adding your tabs to one or more page) to the overview screen that shows all the tabs available for posting. If you haven’t recorded the required App ID # Facebook assigns, you will instead see a link back to the editor, prompting you to enter that information.
I’m doing my best to make this as convenient as possible.
Setting Editing Capabilities
Previously, I made the assumption that Facebook tab content (fbtabs) should be treated like pages, rather than posts, meaning that you had to be an editor or administrator to create or edit them. At least one user contacted me to say he also wanted authors to have access. So now there is a checkbox on the Settings screen asking if you want authors and contributors to have the same sort of rights to create and edit fbtabs as they would for posts.
It’s also possible for website owners to assign their own custom capabilities / permissions schemes, either using custom PHP code or a plugin such as Members or Role Scoper. For example, you could expand the fbtab editing capabilities of an author (one of the standard WordPress roles), or create a custom role such as “Facebook Tab Editor” with the capabilities you assign. For example, someone with this role might have full rights to edit fbtab content but not have access to the editor for pages.
The relevant roles are:
- delete_fbtabs
- edit_fbtabs
- edit_published_fbtabs
- publish_fbtabs
- delete_others_fbtabs
- edit_others_fbtabs
- edit_private_fbtabs
- read_private_fbtabs
Other capabilities might have to be set for a custom role — for example, the “upload_files” capability applies across pages, posts, custom post types, and the media tab on the site administration screens. The WordPress.org site offers more details on the Roles and Capabilities scheme. Took me a while to wrap my head around it, I confess.
