facebook-c#-sdk FacebookUriMapper

ぃ、小莉子 提交于 2019-12-11 17:39:04

问题


I'm tring to follow the Configuring tutorial of the Facebook SDK for .NET.

But when I add the RootFrame.UriMapper = new FacebookUriMapper(); line of code the NavigationService seems stop to work.

The app start's fine but the command NavigationService.Navigate(new Uri("/Views/LoginPage.xaml", UriKind.Relative)); inserted in a Button on init app page don't work. Other commands on same button like a MessageBox.Show works fine.

Thank you for any help you can provide.


回答1:


The file FacebookUriMapper in the Facebook.Client SDK has a bug. When looking via debugger, it doesn't redirect to the target page, but switches back to the default RedirectUri in Facebook.xml. Clone the repository in your computer, open the WP8 solution, restore required Nuget packages. Now, open FacebookUriMapper.cs file, modify the last else block to return uri. Build and use this as your referenced assembly. NavigationService works absolutely fine after this.



来源:https://stackoverflow.com/questions/28284938/facebook-c-sdk-facebookurimapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!