carry forward url parameter when authorizing

Jan 10, 2009 at 1:15 AM

if you set requirelogin in Page_PreInit

Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As EventArgs)
    
Me.Master.RequireLogin = True
End Sub

and then call your page like

http://apps.facebook.com/myapp/mypage.aspx?id=1234

and the user is not authorized to use this app... facebook will present an authorize dialog.

but when it redirects, id=1234 is gone.

how do i pass the parameters through?

Jan 11, 2009 at 5:19 PM
Edited Jan 11, 2009 at 10:00 PM

i realized that the facebook developer toolkit was not passing on the parameters... the only solution i could think of was to modify the toolkit's code, see issue http://www.codeplex.com/FacebookToolkit/WorkItem/View.aspx?WorkItemId=12351 where i've included my modified code.  hopefully this fix will be included in a future release.

this is a big deal for anyone that wants to share a url to a particular object (think say photo) with others and then expect the new user to been able to authorize your app and see the resulting object.

Jan 18, 2009 at 7:59 PM
pbx, you're my Hero.
Jan 18, 2009 at 9:34 PM
I'm glad I could help out.  I sure wish they'd at least acknowledge the problem as I filed it.  Anyone familiar with the status of the Facebook Developer Toolkit in general?  Do they intend to support this code?