This sample demonstrates the use of Facebook C# SDK v6 as a Windows Phone 7 Application.
Note: This sample does not necessarily demonstrate the best use but rather features of using Facebook C# SDK on a Windows Phone 7 app. Always remember to handle exceptions.
Set the appropriate
FacebookLoginPage.xaml.cs before running the sample.
private const string AppId = "app_id";
- For new projects using Facebook C# SDK which use anonymous objects as parameters make sure to add
[assembly: InternalsVisibleTo("Facebook")]in AssemblyInfo.cs.
- When updating UI in callback make sure to execute it in the appropriate thread. This can be solved by using
- Create new instance of
XAsyncmethod calls in order to avoid the event handler from being fired multiple times.