New permission

Jan 15, 2013 at 12:43 PM

Hi, I have an apps with permission granted using:

c.Permissions.Add("user_photos");

c.Permissions.Add("publish_stream");

What if after one month, the apps need a new permission? How do I prompt the user to accept the new permission? Thanks.

Coordinator
Jan 15, 2013 at 12:51 PM

You can call the RedirectToFacebookAuthorization() method of the context class ( http://computerbeacon.net/library/thi9ut71p626c ) to redirect users to authorize the app again.

To determine whether all permissions have already been granted, you can query the [permissions] table using FQL (https://developers.facebook.com/docs/reference/fql/permissions). If the column is "0", that permission has not been granted.

Jan 16, 2013 at 2:11 AM
kayson wrote:

You can call the RedirectToFacebookAuthorization() method of the context class ( http://computerbeacon.net/library/thi9ut71p626c ) to redirect users to authorize the app again.

To determine whether all permissions have already been granted, you can query the [permissions] table using FQL (https://developers.facebook.com/docs/reference/fql/permissions). If the column is "0", that permission has not been granted.

It works. Thanks.

Jun 26, 2014 at 3:58 PM
could you please give more info regarding this?
Is it the canvascontext, webcontext or FqlContext? I can't find Permissions.Add method in any of them.
http://computerbeacon.net/library/thi9ut71p626c is a broken link.

if I use User.GetPermissions method, I receive
string[0] = "permission"
string[1] = "status"

Is that normal?
Coordinator
Jun 27, 2014 at 10:53 AM
The permissions are moved to the LoginSettings class in the new library. It is used to initiate an instance of CanvasContext, WebContext or PageTabContext in their constructors.

See http://computerbeacon.net/library/81iicjcollc49 .