We make tools that make websites.

Recommendations

Facebook Connect

Adds Facebook single sign-on capability to your EE site, as well as the ability to publish data from EE to one's Facebook profile.


More Info Add to Cart


.

Tag

Tag your content with keywords and intuitively display relationships between entries.


More Info Add to Cart


.

My Cart

Documentation

Facebook Connect:Permissions

The FBC:Permissions tag lets you check which Facebook permissions the logged in user has granted. Several conditionals become available within this tag for you to check this.

{exp:fbc:permissions} content {/exp:fbc:permissions} 

Conditionals

The following conditionals are available for use:

if fbc_allow_email

{if fbc_allow_email == "y"}{/if} 

This conditional will evaluate to true if the user has granted access to their primary email address in the Facebook email property. Do not spam users. Your use of email must comply both with Facebook policies and with the CAN-SPAM Act.

if fbc_allow_publish_stream

{if fbc_allow_publish_stream == "y"}{/if} 

This conditional will evaluate to true if the user has granted access to your Facebook app (your site) to post content, comments, and likes to a user's stream and to the streams of the user's friends. With this permission, you can publish content to a user's feed at any time.

if fbc_allow_PERMISSION_NAME

{if fbc_allow_PERMISSION_NAME == "y"}{/if} 

The Permissions tag allows you to check permission settings of any Facebook permission. The above 2 permissions are the main ones you'll need. You can view the full list of permissions in the Facebook Permissions Documentation. Use the names mentioned in the User permission column. To construct a conditional name, use this format: {if fbc_allow_ + PERMISSION_NAME + == "y"}. The conditional will evaluate to true if the user has granted permission for that setting.

Examples

Here’s an example of how you would determine some permissions of a logged in user:

<h3>Permissions:</h3>
{exp:fbc:permissions}
   
<p>Allow Emailing{if fbc_allow_email == "y"}Yes{if:else}No{/if}</p>
   <
p>Allow Publishing to Facebook Stream{if fbc_allow_publish_stream == "y"}Yes{if:else}No{/if}</p>
{/exp:fbc:permissions}