getting started - please please help :(

Oct 1, 2008 at 2:07 PM
Hi guys,

Just been using the toolkit, and can get data etc great but having an issue with the callback url. I've searched the net for a simple guide regarding the authentication model but completely confused. 

What i have is a iframe based application. with callbackurl is http://localhost:1507 on this page it gets data from fb all ok but when i click a hyperlink to another page it refreshes the page and reloads the default.aspx - i guess this it todo with the callbackurl or i get a facebook home page within an iframe

I currently have a paged called view which has the below, should I use the canvas iframe base page on both pages??

 public partial class view : CanvasIFrameBasePage
    {
        user userInfo = new user();

        protected void Page_Load(object sender, EventArgs e)
        {
            base.Api = Static.getWebSetting("fb_api_key");
            base.Secret = Static.getWebSetting("fb_secret_key");

            base.Page_Load(sender, e);

            if (!IsPostBack)
            {
                userInfo = this.API.users.getInfo(this.API.uid);
            }
        }

and a page called add

 public partial class add : CanvasIFrameBasePage
    {
        user userInfo = new user();
   

        protected void Page_Load(object sender, EventArgs e)
        {
            base.Api = Static.getWebSetting("fb_api_key");
            base.Secret = Static.getWebSetting("fb_secret_key");

            base.Page_Load(sender, e);
           
            userInfo = this.API.users.getInfo(this.API.uid);

            if (!IsPostBack)
            {
             
            }
        }


any help or advice would be great.

Thanks

Lee
Oct 1, 2008 at 2:10 PM
i have not read your code / problem in detail but you cannot use localhost as the callbackurl.
You need a internet accessible url since it is FB that will be redirecting / calling this url.

i don't know if this is your problem, but I hope it helps a bit
Oct 1, 2008 at 2:50 PM
Hi,

thanks for a reply, I have a page working and getting data from facebook using localhost, the issue i have it being unalbe to navigate to other pages within my "application" that uses the facebook toolkit CanvasIFrameBasePage class. as I think it calls the callbackurl each time you click a hyperlink or do a postback :S