facebookarchive / account-kit-samples-for-android

Account kit sample for the android platform
Other
123 stars 96 forks source link

Couldn,t get country code/ISO #20

Closed sohailniazai closed 6 years ago

sohailniazai commented 6 years ago

After successful fetching of Access token , The phoneNumber does not have country code .

saurabhdtu commented 6 years ago

I am facing the same problem. The method account.getPhoneNumber().getCountryCodeIso() returns null.

abeatte commented 6 years ago

There are several ways in which the countryCodeIso is obtained (mainly from the phone number provided using a phone number parser). If a countryCodeIso is unable to be parsed then none will be returned.

In testing, I am able to come up with countryCodeIsos. Do you notice that this only happens for specific phone numbers?