title: How to get a Facebook access token on iOS
body: <p>iOS beginner here. I have the following code:</p>
  
  <pre><code>[facebook authorize:nil delegate:self];
  NSString *string1=[facebook accessToken];
  NSLog(string1);
  </code></pre>
  
  <p>The log shows: <code>miFOG1WS_7DL88g6d95Uxmzz7GCShsWx_FHuvZkmW0E.eyJpdiI6IjNZZkFBY1c5ZnBaMGEzOWM2RzNKbEEifQ.LNjl06lsOQCO9ArVARqff3Ur2XQHku3CMHDBKkpGg351EB33LGxVv96Hh5R860KDJL0cLq8QezSW0GovYxnhUucOwxlITV364sVKDXIzC3bAn9P_74r2Axl1SgOaTyMMkQ_aSQ2OWh-8d3Zn9BDt3pXVWzBLJ9I4XAosnw0GjuE</code></p>
  
  <p>This seems too long to be an access token. I read it's supposed to be only 40 characters long. What am I doing wrong?</p>