Search code examples
c#windows-phone

C# - Check if user is logged in Facebook


I'm working on a Windows Phone Silverlight app and I want to make a simple login via Facebook(browser). Is there a way to check if the user is logged in Facebook? I redirect the user to Facebook page with this statement:

Launcher.LaunchUriAsync(new Uri("http://www.facebook.com"));

Solution

  • I don't know if you are using the windows SDK for facebook (https://github.com/Microsoft/winsdkfb) but it is a third party sdk approved by Facebook.

    Before using that SDK you should set up the Facebook developer page for your app. (https://developers.facebook.com/docs/apis-and-sdks)

    I hope that helps.