0

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.

Edited by nyagei: to mark code

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by nyagei
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.