title: Any way to pull out session key from access token returned by Facebook iOS SDK?
body: <p>I need Facebook session key to be used in this senario: <a href="http://developers.facebook.com/docs/chat/#platauth" rel="nofollow">http://developers.facebook.com/docs/chat/#platauth</a></p>
  
  <p>However, the current <a href="https://github.com/facebook/facebook-ios-sdk" rel="nofollow">Facebook iOS SDK</a> returned us a access token which is not enough for this case. I digged around a lot , found this question here:</p>
  
  <p><a href="http://www.quora.com/Do-the-OAuth2-access-tokens-in-the-new-Facebook-Graph-API-expire" rel="nofollow">http://www.quora.com/Do-the-OAuth2-access-tokens-in-the-new-Facebook-Graph-API-expire</a></p>
  
  <p>But the format it described doesn't have a similarity to the access token we got.</p>
  
  <p>I am a little confused on these things.</p>
  
  <p>By the way, I checked out an old version iPhone targeted <a href="https://github.com/facebook/facebook-iphone-sdk" rel="nofollow">old Facebook SDK</a> to test, since this older SDK provides session key directly , but this SDK now always display a error page from Facebook after a successful login.  Seems this SDK is fully deprecated?</p>
  
  <p>To make this question clear, this is the access token(embedded in the URL) I got from <a href="https://github.com/facebook/facebook-ios-sdk" rel="nofollow">Facebook iOS SDK</a>:</p>
  
  <pre><code>fb193174047373858://authorize/#access_token=IwDbeiWINrotP3JOd1EGoEY7OmOBd2DyV8lh73mutCM.eyJpdiI6IkdKd3BvWlItcWlWRzIwTGYtUkRUVWcifQ.J6qNtSibMmm0yFe2QNHG46jnIUXef3dV-NnbYqXkfrFABjPrgMPQRUeKHJ3GxX1T3nlU7-4P8FUT6dlfwSwHfNJrheTUZIXdd3AlsSRUiUer5xEdFA9IsGEMn6GyHheH9DSr76IeZcBjl-_s4ub3kg&amp;expires_in=0
  </code></pre>