I’m creating a desktop application in C#.
one of the things that this application should do is to publish things to the status of the user in facebook (like: “dave just won 3 gold medals” ). this should happen whether the user is logged in now to facebook or not. I want the user to give me all the needed permissions once and then everything would happen automatically (I would save whatever is needed on my DB).
I tried using facebook developer toolkit 2.0 for .net but didn’t see anything there that could help me.
ANY help would be appreciated.
I’m creating a desktop application in C#. one of the things that this application
Share
Iv’e got some answers here. I think it answers other questions I saw in the web lately:
My answer is related to desktop applications that works outside of facebook (facebook connect).
+ I’m using the facebook developer toolkit 2.1:
Here is how to get the special permission, needed to for offline access. and how to get the session key:
The second line will force you to login and afterwards would ask for the permission after the user choose to grant the permission, you are given in the post URL – the fb_si_session_key. BUT the toolkit developers didn’t do enough to bring it to you 🙁
So you have few options. the simple one is to do:
What will happen is that you’ll see the login screen for a second and before youll be able to click anything it would vanish. but this time you’ll have the right session key. you can get it like that:
If you dont want to show that annoying screen again you have few options, all of them are related to changing the source files of the toolkit. I’m not gonna get into it here, but just tell you a simple option: in the facebookconnect() function I changed it to receive a parameter (isShow) when I send true to it, it behaves normal, when I send false to it – it skips on the
formLogin.ShowDialog();It’s working.