title: How to Access Different Facebook Accounts Through My iOS App
body: <p>This is the first time I have integrated facebook into an app so I am sure I must have missed something. The problem I'm having is that I can only access my OWN facebook account through my iOS app with facebook integration.</p>
  
  <p>The specifics:
  I integrated facebook (SDK 3.1) into my app (xcode 4.5) successfully. The very first time I logged into facebook through my app it asked for my password, etc. Works fine on the simulator and my iPhone (iOS 6) to access my friends and their info, BUT here are the two problems:</p>
  
  <p>1) When I click the "facebook logout" button that I set up, and then I log back in, it says I am "already authorized" to use the app. There is no option to change the facebook user.</p>
  
  <p>2) I sent the app to a friend through testflight and when he opens it on his phone and clicks log in to Facebook with his own account, he gets an error that reads "com.facebooksdk error 2." </p>
  
  <p>Why can't I change the facebook user who is using the app? I followed the tutorial called "Login" on the Fb app developer website to set this up: <a href="https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/" rel="nofollow">https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/</a></p>
  
  <p>I also used some code from the "Run SQL Queries" tutorial to grab my friends photos: <a href="https://developers.facebook.com/docs/howtos/run-fql-queries-ios-sdk/" rel="nofollow">https://developers.facebook.com/docs/howtos/run-fql-queries-ios-sdk/</a></p>
  
  <p>Can any help or point me in the right direction? </p>