Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP8 - FacebookUriMapper redirecting to wrong Uri #85

Open
igorkulman opened this issue May 22, 2015 · 5 comments
Open

WP8 - FacebookUriMapper redirecting to wrong Uri #85

igorkulman opened this issue May 22, 2015 · 5 comments

Comments

@igorkulman
Copy link

Windows Phone 8 Silverlight, in my FacebookConfig.xml I have

<RedirectPage Name="/Views/LoginView.xaml" />

When I initiate login using

Session.ActiveSession.LoginWithBehavior("email,public_profile", FacebookLoginBehavior.LoginBehaviorMobileInternetExplorerOnly);

I log in and the FacebookUriMapper tries to redirect me to '/181388238617107'

and the app crashes with

No XAML was found at the location '/181388238617107'

I would expect the FacebookUriMapper to redirect me to /Views/LoginView.xaml as stated in the FacebookConfig.xml.

@igorkulman
Copy link
Author

Just noticed that the wrong Uri is exactly the Facebook app id defined in FacebookConfig.xml

<Facebook AppId="181388238617107" />

@DimitarHPopov
Copy link

I have the same issue, did you find solution ?

@N-Simoso
Copy link

I encountered the same problem. But found a fix...

Build from source and apply this:
77141cc

@igorkulman
Copy link
Author

@DimitarHPopov I created my own uri mapper parsing the uri "by hand". @N-Simoso looking at the code, calling Wait() and .Result on tasks is a bad practice that can deadlock the thread.

@N-Simoso
Copy link

@igorkulman You're absolutely right, but as I'm currently still in development phase this does suit my needs. When the moment comes to move this to testing, there is quite some more stuff to check before the code could be considered stable. ;)

The reason that I currently use this is to enable the app to at least pass the login without a hassle. So the quick and dirty solution suits my needs (for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants