App may not request permissions that do not apply to all profiles in the selector

Oct 21, 2010 at 3:40 PM

I am attempting to create a Facebook IFrame Application using the Toolkit (language I'm using is VB). No matter what I do, I cannot get past this error message from Facebook. I have tried dropping a CanvasIFrameLoginControl with requirelogin=true

i have also tried inheriting Facebook.Web.CanvasIFrameMasterPage then adding Me.RequireLogin = True to the Page_Init event. Both of these do require login. As soon as I add Required permissions, however, I get the API Error Code 100 - an app may not request permissions that do not apply to all profiles in the selector error from facebook. Does anyone have any idea how I can get past this issue?

Oct 29, 2010 at 9:59 AM
mshaheen220 wrote:

I am attempting to create a Facebook IFrame Application using the Toolkit (language I'm using is VB). No matter what I do, I cannot get past this error message from Facebook. I have tried dropping a CanvasIFrameLoginControl with requirelogin=true

i have also tried inheriting Facebook.Web.CanvasIFrameMasterPage then adding Me.RequireLogin = True to the Page_Init event. Both of these do require login. As soon as I add Required permissions, however, I get the API Error Code 100 - an app may not request permissions that do not apply to all profiles in the selector error from facebook. Does anyone have any idea how I can get past this issue?

 Hi,

 Use the below code in masterpage constructor. This will work only for publish and if u give email also in extended permissions then u will get the same error.

RequireLogin = true ;

this.RequiredPermissions = new List<Enums.ExtendedPermissions >() {

 

Enums.ExtendedPermissions .publish_stream

};

 

 Thanks..