Veerasundaravel's Ruby on Rails Weblog

November 23, 2010

Facebook Connect with Extended Permission

When a Facebook user authorizes your application, your application gets access to the user’s Facebook ID. By default, your application can access all public data in a user’s profile, including her name, profile picture, gender, and friends. If your application needs to access other parts of the user’s profile that may be private, or if your application needs to publish content to Facebook on a user’s behalf, your application must request extended permissions.

For example if you want to get the email address of a particular facebook user, then you can use this extended permission option.

Facebooker gem is providing the option in the name ‘permsToRequestOnConnect’ like below:

<%= init_fb_connect "XFBML", { :app_settings => " { permsToRequestOnConnect : 'email' }"} %>

So after adding this, When you click on Connect button it will pop-up the Facebook authorization form with email access request like below:

For more extended permission option refer to this link.


  1. […] This post was mentioned on Twitter by Alltop Facebook, Veerasundaravel. Veerasundaravel said: Facebook Connect Extended Permission: […]

    Pingback by Tweets that mention Facebook Connect with Extended Permission « Veerasundaravel's Ruby on Rails Weblog -- — November 23, 2010 @ 4:36 pm

  2. I do it code. I have problem get email.

    please show me code exmaple get email.
    exmaple get sex => facebook_session.user.send(:sex).inspect.
    if email ?

    Comment by golf — January 17, 2011 @ 9:06 pm

  3. facebook_session.user.send(:email) should return the email address of the facebook profile.

    Also check that user has authorized the request to access email address of them.

    And make sure your trying this in a remote server, cos sometime it wont work in your local machine(localhost)

    Comment by Veerasundaravel — January 18, 2011 @ 11:44 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: