I am able to connect to facebook using the C# SDK via my console application but the Facebook Access Key expires every couple of hours and I have to be logged in to my facebook account for it to work at all.
I am using the following code to enumerate photo albums :
var usertoken = FBImageChecker.Properties.Settings.Default.FBUserAccessKey;
var fbclient = new FacebookClient(usertoken);
dynamic albums = fbclient.Get("me/albums");
Am I correct in thinking I should be using oAuth now? if so, does anyone have an example which could work in my case?
Any help would be much appreciated!
finally managed to get this working using oauth, unfortunately facebooks documentation is not exactly clear and although there are many examples online as pointed out by @ramhound a lot of them apply to older authentication models so it was a case of trial and error.