I am developing an application in asp.net to run on face book. I want to prompt the user to grant various permissions on first login.

this is my sample code:

List<string> list=new List<string>();
list.Add("publish_stream");
list.Add("email");
this.Api.Auth.Permissions.BeginPermissionsMode();
this.Api.Auth.Permissions.GrantApiAccess(this.ApiKey.ToString(),list);
this.Api.Auth.Permissions.EndPermissionsMode();

some error #100 is occuring.
Is there any body out there who has done something similar to what am trying to do? Please help.

I am developing an application in asp.net to run on face book. I want to prompt the user to grant various permissions on first login.

this is my sample code:

List<string> list=new List<string>();
       list.Add("publish_stream");
        list.Add("email");
       this.Api.Auth.Permissions.BeginPermissionsMode();       this.Api.Auth.Permissions.GrantApiAccess(this.ApiKey.ToString(),list);
       this.Api.Auth.Permissions.EndPermissionsMode();

some error #100 is occuring.
Is there any body out there who has done something similar to what am trying to do? Please help.

Guys finally I got a solution that worked:

<form id="form1" runat="server" promptpermission="email,publish_stream,sms">

on submitting the form, the prompt for permissions will pop up.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.