Get username email id yahoo oauth php

I created an application that allows users to log in using their Yahoo credentials, I can get some information, such as an alias and a guide, but I can’t get the email id of the registered user.

I gave permission to read contacts, mail, status apis on my yahoo application.

I am using the PHP PHP SDK.

Can anyone point out what I am missing here.

+5
source share
2 answers

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

Then (in code):

$profile = $user->getProfile();

You will see the email address.

+4

Yahoo API, , API (, Facebook ..) . FB, , , .

0

All Articles