redirect to page within facebook canvas

Jul 16, 2008 at 9:53 AM
hi all,
i am developing an iframe application. my applications send notification to users friends. when freind clicks on the link in notification the requested page getsopen.
the problem is that the page is getting opened outside Facebok canvas and not in facebook canvas. i want to open the page in facebook canvas .
the code i wrote for notification is :

FBService.SendNotification("<a href='http://216.12.165.227/FaceBApp/Forms/Show.aspx?imgid=" + imgid + "'>click here</a>", friends[i].UserId);

Jul 16, 2008 at 10:21 AM

You should add the below to the Page_load

 

new protected void Page_Load(object sender, EventArgs e)

 

 

{
base

 

.Api = ConfigurationManager.AppSettings["appkey"];

 

 

base.Secret = ConfigurationManager.AppSettings["secret"];

 

 

base.Page_Load(sender, e);
}

 

Jul 16, 2008 at 11:27 AM
i had written in my page load

new

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

base.Api = FACEBOOK_API_KEY;             //----------application key
base.Secret = FACEBOOK_SECRET;                 //----------secret key

 

 

base.Page_Load(sender, e);
}

when i write

 

new protected void Page_Load(object sender, EventArgs e)

 {
base.Api = ConfigurationManager.AppSettings["appkey"];

 base.Secret = ConfigurationManager.AppSettings["secret"];

 base.Page_Load(sender, e);
}
instead, it redirects to login page and asks for password. when i provide the paasword, it says incorrect password even though password is correct
please suggest some soluion

Jul 21, 2008 at 10:09 PM
You need to link to http://apps.facebook.com/yourappname/Forms/Show.aspx?imgid=
Jul 22, 2008 at 9:54 AM
Oh yes, you need to link to http://apps.facebook.com/yourappname/Forms/Show.aspx?imgid=