I have an iFrame Facebook app. I use the Facebook C # SDK libraries, Facebookand Facebook.Web.
When a user first comes to my application, I create an object FacebookAppon page_load(). If the value app.Sessionis null, I create a CavasAuthorizer(app), then call Authorize().
Two problems:
Firstly, the redirect URL created during the call Authorizecauses a Facebook error with the wrong βnextβ parameter. Says that the "next" parameter does not belong to the application. It looks like this:
next=http://localhost:4002/facebookredirect.axd/mygame_dev/mygame.aspx
I can edit the code in CanvasURLBuilderso that the following looks like this:
next=http://localhost:4002/mygame.aspx
At this point, the URL works if I cut and paste it into the browser, but it leads me to the second problem.
When the code is launched, the user is provided with a predominantly blank page with a medium-sized Facebook image and the link "go to Facebook". When the user clicks on the link, the user navigates to the correct login page for my application.
I have a feeling that these are two related problems, but potentially separate.
Any help here would be greatly appreciated.
-Andy
source
share