Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Logged in user's email id yahoo oauth php

Tags:

php

oauth

yahoo

I have created an application which allows users to log in using their Yahoo credentials, I am able to retrieve some info like nick name and guid, but I am not able to retrieve email id of the logged in user.

I have given permission to Read contacts,mail,status apis to my yahoo application.

I am using Yahoo PHP SDK.

Can someone point what stuff am I missing here.

like image 545
Sandhurst Avatar asked Oct 12 '22 16:10

Sandhurst


1 Answers

Activate Social Directory -> Read Public from http://developer.apps.yahoo.com in your project.

Then (in code):

$profile = $user->getProfile();

You will see the email address.

like image 108
cosy Avatar answered Oct 20 '22 20:10

cosy