This project has moved and is read-only. For the latest updates, please go here.


SDK does not generate URLS for tab applications


At the moment the sdk doesn't support a way to generate urls besides canvas app.

Need to add a new method like ResolveTabUrl()
Closed Feb 6, 2012 at 8:35 PM by ntotten


stimpy77 wrote Sep 30, 2011 at 7:20 PM

We should at least have a property in Facebook.FacebookApplication that we can set in web.config. This is important. When a user signs into a tab page application with OAuth the redirectUrl parameter needs to be populated, typically the tab page URL that originated the OAuth sequence. We are storing this in appSettings, but with other Facebook settings in the <facebook> node, so you have a disparity of where to store Facebook details. We have a ton of other settings to worry about; Facebook settings should be kept together especially when the settings requirements are consistent across multiple applications.

stimpy77 wrote Sep 30, 2011 at 7:42 PM

Seems the tab page can be constructed as something like:

// implement ResolveRedirectTarget() manually as invoke via HTTP to get redirect target
var pageBaseUrl = ResolveRedirectTarget(scheme + "://" +;

// combine base page URL with application ID as tab querystring param
var tabPageUrl = pageBaseUrl + "?sk=app_" + Facebook.FacebookApplication.Current.AppId;