I've developed a WordPress plugin for social login using Facebook.
I'm using the Facebook graph API /me
to retrieve the user details. My problem is that for some websites, when installed a Facebook login plugin, I'm only getting user ID and name.
Array
(
[name] => John doe
[id] => 398463877009801
)
but same code is working well for some websites as well.
Array
(
[id] => 398463877009801
[email] => [email protected]
[first_name] => John
[gender] => male
[last_name] => Doe
[link] => https://www.facebook.com/app_scoped_user_id/398463877009801/
[locale] => en_US
[name] => John Doe
[timezone] => 5.45
[updated_time] => 2015-05-03T11:24:16+0000
[verified] => 1
)
What might be the possibilities of the errors for the site that is getting only name and id?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…