73090

How to track facebook password change and profile changes?

Question:

I am integrating facebook iOS SDK 4.0 in my mobile app. I came into scenario where user logged into our mobile app with facebook credentials, after some time the user changed his password and Firstname in facebook. Now How do I track this change in mobile app? and redirect user to validate facebook credentials in mobile app?

Answer1:

In both v3 and v4 of the SDK, the access token is cached locally on the device (by default), and the only way to know if it's still "valid" is to make a graph request.

You can make a /me or /permissions request during app start if you have a cached token, and check for errors, and prompt the user to re-log in if the token is no longer valid. There are also some auto-error recovery mechanisms built into the SDK, see <a href="https://developers.facebook.com/docs/ios/errors" rel="nofollow">https://developers.facebook.com/docs/ios/errors</a>.

Recommend

  • How to send an std::vector of unsigned char over an UDP socket using boost asio?
  • ASP Net Core - Mixing External Identity Provider with Individual User Accounts for Audit Tracking
  • ValidationResult Returned From IValidatableObject.Validate Is Not Localized
  • iOS Validation failed -> Bundle is invalid (Xcode 6.2, iOS 8.2)
  • ActionBar with appcompat library v7 (ava.lang.IllegalStateException: You need to use a Theme.AppComp
  • Android TabLayout on the bottom of the screen
  • jQuery - how to validate a date of birth using jQuery Validation plugin?
  • Change color of row programmatically in WatchKit
  • IDX10503: Signature validation failed
  • oauth2client.client.HttpAccessTokenRefreshError: invalid_grant: Invalid JWT
  • Syntax error near unexpected token 'elif'
  • Stitching 2 images (OpenCV)
  • Get current user from inside the model in Sails
  • Ionic storage “get” returns null only on the second call within method
  • read values from form post in jquery or javascript
  • pip in virtualenv gets ConnectTimeoutError
  • Possible to get mouse events fired when cursor is outside page?
  • Element.tagName for python not working
  • Android - Material Design - NavigationView - How to put vertical scroll?
  • MongoError: Incorrect arguments
  • Bad request using file_get_contents for PUT request in PHP
  • Django rest serializer Breaks when data exists
  • Spring Data JPA custom method causing PropertyReferenceException
  • Dynamically accessing properties of knockoutjs observable array
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Excel - Autoshape get it's name from cell (value)
  • Validaiting emails with Net.Mail MailAddress
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • Apache 2.4 - remove | delete | uninstall
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • Benchmarking RAM performance - UWP and C#
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • need help with bizarre java.net.HttpURLConnection behavior
  • Authorize attributes not working in MVC 4
  • UserPrincipal.Current returns apppool on IIS