Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get started with the Facebook C# SDK for WP7?

I've been reading alot (and searching alot) but can not find a decent resource for getting started with Facebook C# SDK for WP7. I'm NOT looking for a handout of code but rather a starting point to using this library to develop my WP7 app.

I'm aiming to provide a feature to authenticate a user and allow them to post to facebook.

I've read their documentation and there isn't anything on the topic, just how to register your app with facebook (???). They have 2 links to getting started but they bring up an empty page. Also most examples I have run into are targeting .NET 4(for desktop) or ASP.NET which do not use the same model as WP7(silverlight).

I've looked at the classes and methods provided, and they look easy to implement but apparently there are prelimenary steps needed (what are these?).

I know we would probably have to set up a new instance of the facebook app, and then authenticate but so far I have not been very successful in figuring this out.

Could someone please share some resources on where to get started with this? Thanks.

like image 597
Edward Avatar asked Mar 21 '11 19:03

Edward


2 Answers

There is a Windows Phone 7 specific sample in the Facebook C# SDK library:

Samples/CSWinPhone7SimpleApp.sln

It shows how to authentificate a user.

like image 76
Olivier Payen Avatar answered Oct 13 '22 20:10

Olivier Payen


Sample code is no longer available in the SDK itself. Head over to the blog to read up on creating your first app.

Writing your first Facebook Application

This is written for all platforms but it does mention any specifics you need to know for Phone 7 as well.

like image 33
Scott Avatar answered Oct 13 '22 21:10

Scott