Question Details

Answered
How can I get a user's email and phone number information?

How can I get a user's email and phone number information?

0
Profile picture
Kazuki Nakajima

Answers

3
Profile picture
Kazuki Nakajima
Posted: 2 years ago

There is currently no way of getting a user's email and phone number information. However, we are planning to release email and phone scopes which will let you ask users to grant permission for that information. We will make an announcement in the News section when that becomes available.

Profile picture
Susa Serizawa/芹澤 須佐
Posted: 2 years ago

Now you can request users who log in using LINE Login to grant your app the permission to get their email address. To do so, you first need to apply for the permission in the console.

For more information, see the sections below in Integrating LINE Login with your web app.

Applying for email permission Scopes

Profile picture
Naveen Kadiyala
Posted: 1 years ago

Hi buddy!! I have been succesfully logged in while using Scope.PROFILE and getting username and displayPicture. But, I have been getting these two errors if using Scope.ID_CONNECT, Scope.OC_EMAIL.

1st Error :

E/IdTokenParser: failed to parse IdToken: eyJraWQiOiI4Y2NlOGYwNzRlZDAyMzc4ZmE4MDcwNTY0NDgxMmEyNjcyZWQ3NzUxZjViOTA2OTg5MzU1NzczNGYyMWJmNzI4IiwiYWxnIjoiRVMyNTYifQ.eyJpc3MiOiJodHRwczovL2FjY2Vzcy5saW5lLm1lIiwic3ViIjoiVTRjMWJmOWE4YjZmMmIyNDZhMmRmMzJjNGQ3MTNiODgxIiwiYXVkIjoiMTYzNzM2NTUxMSIsImV4cCI6MTU0OTE3NjYxMywiaWF0IjoxNTQ5MTczMDEzLCJub25jZSI6Ii1KQW82bW1wWnNVIiwibmFtZSI6Ik5hdmVlbiBLYWRpeWFsYSIsInBpY3R1cmUiOiJodHRwczovL3Byb2ZpbGUubGluZS1zY2RuLm5ldC8waEp5TG95b3h5RlZaeEZqOEU1ZkpxQVUxVEd6c0dPQk1lQ1hnT1pBUVVTVEplSndCVEhuRmVORnhESEdCZGRGWUJTbmNQWWxCQ0h6TU0iLCJlbWFpbCI6InZlbmthdG5hdmVlbjQxOEBnbWFpbC5jb20ifQ.KHAo-0p-xX79gV-Z5YA8XwHKSbzqURzdt8okveMuHcyhE9baxsxtzKXQmKZ7kKWq3RI5xRzquDgn_ehb9X5OtQ java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference

**2nd Error : **

E/ERROR: Login FAILED! LineApiError{httpResponseCode=200, message='java.io.IOException: org.json.JSONException: Attempt to invoke virtual method 'android.net.Uri$Builder android.net.Uri.buildUpon()' on a null object reference

could you please help me to resolve this....

Are you sure? question.vm