loosing facebook template

Jul 31, 2007 at 10:07 PM
Edited Jul 31, 2007 at 10:07 PM
After clicking the confirm button to send invite using SendRequest(...), the browser is redirected to my www.hostingpage.com instead of canvas page. i am loosing the facebook template even if i click on "forget it" button on confirmation page.

Thanks,
Coordinator
Aug 7, 2007 at 4:31 AM
Are you using the base pages?
Aug 7, 2007 at 3:22 PM
i am not sure wat ur question is.

callback url is: http://www.hostingpage.com/default.aspx
post-add url is: http://apps.facebook.com/newsfeedap/

Thanks,
Aug 22, 2007 at 5:56 AM
I'm having the exact same problem after clicking on the confirm button. And I am using the IFrame base page. Any suggestions would be greatly appreciated.
Aug 22, 2007 at 5:40 PM
tbennet

If you wouldn't mind could you please send me some sample codefor SendRequest? i have this call in PageLoad event(just to test this functionality). I do not get any URL back. The URL returned by this function is null. I need to release this by Friday and still can't figure out the "Sending an invitation to add the app" feature working.

Any help from anyone is appreciated!

Thanks
Sara
Aug 24, 2007 at 2:36 PM
here you go.

url = this.fbService.SendRequest(fbml, _toList, "application", _img, true);
if (_url.Length > 0)
{
Response.Write("<script type=\"text/javascript\">\nif (parent != self) \ntop.location.href = \"" + _url + "&next=" + Server.UrlEncode("?next=default.aspx") + "\";\nelse self.location.href = \"" + _url + "&next=" + Server.UrlEncode("?next=default.aspx") + "\";\n</script>");
Response.End();
}

fblm is ur link to add application
_toList is list of friends
_img i have image, but is not working

once i get the url i redirect the user to confirm page with param next in the url.
once user click confirm or forget button the page will redirct you to ur hosting page and ur going to loose the facebook template.
on ur hosting page look for the next param and redirect the user to http://apps.facebook.com/urapp to get the facebook template.

let me know if have any questions.

when i had my app on my local box tell a friend link worked. once i hosted live i start loosing the session.
every time i click on tell a friend link facebook redirect me to the default page, becz i don't have session it goes to login page. since i am loged in, it redirect me to cavase page wich is defualt.aspx
i have hidden variable, but didn't work. let me know if you have solution.

Thanks,
Aug 27, 2007 at 4:20 AM
The SendRequest worked and also receiving invitation and adding app is fine. However the iFrame is lost.

The Post-Add URL is :

http://localhost/myapp/mypostaddpage.aspx

The iFrame is fine if I give the PostAddURL as :
http://apps.facebook.com/myapp/

Does anyone know how to retain the iFrame for the above URL(thats localhost)?
thanks
Sara
Aug 27, 2007 at 4:21 AM
I meant right after the user adds the app, the iFrame is lost....

thanks
Aug 27, 2007 at 3:22 PM
sara...

Sorry I did not see your message above earlier.

It sounds however from your last post that you now have that question answered. Is that correct?
Aug 27, 2007 at 9:42 PM
hi all,

do u guys know how to keep the session in IFrame.


thanks,