title: ACAccount Facebook: An active access token must be used to query information about the current user
body: <p>I am using iOS 6 Social framework for accessing user's Facebook data. I am trying to get likes of the current user within my app using <code>ACAccount</code> and <code>SLRequest</code>. I have a valid Facebook account reference of type <code>ACAccount</code> named <code>facebook</code>, and I'm trying to get user's likes this way:</p>
  
  <pre><code>SLRequest *req = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:url parameters:nil];
  req.account = facebook;
  [req performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
       //my handler code.
  }
  </code></pre>
  
  <p>where <code>url</code> is <code>@"https://graph.facebook.com/me/likes?fields=name";</code> In my handler, I'm getting this response:</p>
  
  <pre><code>{
  error =     {
      code = 2500;
      message = "An active access token must be used to query information about the current user.";
      type = OAuthException;
  };
  }
  </code></pre>
  
  <p>Shouldn't access tokens be handled by the framework? I've found a similar post <a href="https://stackoverflow.com/questions/11270755/querying-facebook-user-data-through-new-ios6-social-framework">Querying Facebook user data through new iOS6 social framework</a> but it doesn't make sense to hard-code an access token parameter into the URL, as logically the access token/login checking should be handled automatically by the framework. In all examples that I've seen around no one plays with an access token manually:</p>
  
  <p><a href="http://damir.me/posts/facebook-authentication-in-ios-6" rel="nofollow noreferrer">http://damir.me/posts/facebook-authentication-in-ios-6</a></p>
  
  <p><a href="https://stackoverflow.com/questions/12644229/ios-6-facebook-posting-procedure-ends-up-with-remote-app-id-does-not-match-stor">iOS 6 Facebook posting procedure ends up with &quot;remote_app_id does not match stored id&quot; error</a>
  etc.</p>
  
  <p>I am using the iOS6-only approach with the built in Social framework, and I'm not using the Facebook SDK. Am I missing something?</p>
  
  <p>Thanks,</p>
  
  <p>Can.</p>