Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Authentication for user with multiple iOS devices (Ruby On Rails and iOS SDK)?
    primarykey
    data
    text
    <p>Currently my iOS app facebook atuhtentication does not work for users that have two iOS devices.</p> <p>It works only when the user has one iOS device. The app uses the iOS SDK. (Not the Facebook SDK)</p> <p>On the server side I use a rails app. The rails app receives a facebook token from the iOS app, and it uses the token to fetch the user email and profile picture.</p> <pre><code> @graph = Koala::Facebook::API.new(facebook_token) profile = @graph.get_object("me") profile_picture = @graph.get_picture("me") </code></pre> <p>Koala responds with the following error:</p> <pre><code>"Koala::Facebook::AuthenticationError: type: OAuthException, code: 190, error_subcode: 460, message: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. [HTTP 400]" </code></pre> <p>I would like to know how to solve this issue and allow facebook authentication for users with more than one iOS device?</p> <p>Thanks in advance.</p> <p><strong>SOLUTION</strong> For this case the solution consited in handling the authenticaiton via the facebook device, instead of via the rails app.</p> <p>Also it is useful to have a server based facebook authentication cache. Per Facebook documentation recommendation: <a href="https://developers.facebook.com/docs/ios/login-tutorial/#tokencache" rel="nofollow">https://developers.facebook.com/docs/ios/login-tutorial/#tokencache</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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