freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

First_Name, Last_Name not sent #233

Closed ionutmihaila closed 8 years ago

ionutmihaila commented 8 years ago

Hi guys,

Tested on iOS only, it looks like first_name, last_name and email are not sent anymore in FB response. The only data received now once user is successfully logged is: access_token, name and id.

It works fine if I use an old FB app API v.2.2 built in the past, I receive all the data requested, but when I tried today with a new FB app API v.2.5, I got the result above. Please help.

Many thanks,

ionutmihaila commented 8 years ago

Solved on iOS by adding in requestWithGraphPath the fields needed, as mentioned in FB documetation, starting API 2.4, you need to mention the fields you need: me?fields=id,first_name,last_name