facebook-csharp-sdk/facebook-csharp-sdk — Issue #64: Redirect loop for mobile users
Author: ntotten
Created: 2012-02-06 19:36:46+00:00
State: open

We released our Facebook application Am I Interesting (http://apps.facebook.com/amiinteresting) earlier this week, and have since then gotten complaints that the application cannot be accessed from mobile phones, both iPhone and Android. So I tried from my fiancé’s phone, and after realizing that I had to configure a mobile URL in the Facebook application settings, I can replicate the problem and get this error message:

"The mobile version of the app "Am I Interesting" is unavailable because it is misconfigured. It appears to be caught in a redirect loop."

The Facebook application configuration setting for Mobile Web URL points to http://www.amiinteresting.net.

The first redirect to the application, which is to www.amiinteresting.net (as configured), works fine. The error occurs after choosing to login and we use the Facebook C# SDK to authenticate and redirect back to the application. That redirect goes to apps.facebook.com/amiinteresting, which is what we want the “normal” web redirect to go to, but it seems that the mobile web applications for Facebook need their own domain and shouldn’t use the apps.facebook.com/XXXX format. But that's just a hypothesis of mine.

Here’s my configuration in web.config:

I’m using version 5.3.2.0 of the SDK.

I have also posted this issue on Stack Overflow:
http://stackoverflow.com/questions/8551138/redirect-loop-with-facebook-c-sharp-sdk-for-mobile-users-ios-android

I experence the same redirect behavior with "m.apps.facebook.com" as in this issue:
http://stackoverflow.com/questions/8289868/mobile-version-of-facebook-app-going-into-redirect-loop

Migrated from: http://facebooksdk.codeplex.com/workitem/5923