Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ACAccount Facebook property username return email and sometimes the nickname

When I access to the Facebook Account using ACAccountStore to get an ACAccount object I noticed that for some profiles the ACAccount.username give me the Facebook email but for other profiles give me the nickname... How is possible that the same property contains different value ?

This drive me crazy...

like image 881
Fry Avatar asked Nov 23 '25 05:11

Fry


1 Answers

Yes, it's weird for me too. But I can get the email from properties field like below:

NSString *email = [[account valueForKey:@"properties"] objectForKey:@"ACUIDisplayUsername"];
like image 148
Ken Matsui Avatar answered Nov 25 '25 19:11

Ken Matsui



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!