facebook-csharp-sdk / facebook-winclient-sdk

Facebook SDK for Windows & Windows Phone
http://facebooksdk.net
Apache License 2.0
61 stars 139 forks source link

Unhandled exceptions on Facebook login #82

Open WheretIB opened 9 years ago

WheretIB commented 9 years ago

FacebookOAuthException is not the only exception that might arise from LoginAsync call, please handle all exceptions internally here:

https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/blob/master/Source/Facebook.Client/Session.cs#L513-L534

Note that because this is an async method, if the call to your library is not properly wrapped on the application side, this will lead to crash in UnhandledException handler.