Search code examples
androidfacebookaccount-kit

Account Kit does not 'pre-fill the user's phone number in the SMS login flow'


Facebook's Account Kit does not pre-fill the user's phone number in the SMS login flow.

Pre-requisites ensured:

  1. setReadPhoneStateEnabled set to true
  2. runtime permissions granted
  3. checked on marshmallow and pre-marshmallow
  4. checked on single-sim phones and dual-sim phones
  5. checked on different cellular network operators
  6. Facebook app installed, logged in, and phone number verified (only one phone number mentioned per FB account)
  7. SDK version 4.20
  8. Key hashes of the development environment entered in the Facebook app dashboard

Solution

  • Turns out, this feature is dependant on the whether or not one's cellular provider has set up the phone number in the SIM.

    In my country, sadly, the cellular providers do not follow this practice.