Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Iv'e got some answers here. I think it answers other questions I saw in the web lately:</p> <p>My answer is related to desktop applications that works outside of facebook (facebook connect). + I'm using the facebook developer toolkit 2.1:</p> <p>Here is how to get the special permission, needed to for offline access. and how to get the session key:</p> <pre><code>facebook.Components.FacebookService FS = new facebook.Components.FacebookService(); FS.GetExtendedPermission(facebook.Types.Enums.Extended_Permissions.offline_access); </code></pre> <p>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 :-(</p> <p>So you have few options. the simple one is to do:</p> <pre><code>FS.Logoff(); FS.ConnectToFacebook(); </code></pre> <p>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:</p> <pre><code>string myPermanentSessionKey = FS.API.SessionKey; </code></pre> <p>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 <code>formLogin.ShowDialog();</code></p> <p>It's working.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload