Parou de retornar o e-mail

4 views
Skip to first unread message

Romulo

unread,
May 4, 2011, 10:32:02 AM5/4/11
to Orkut php client
Eu tenho uma aplicação que algumas semanas passadas retornava o email
do usuario. Hoje não retorna mais.

Uma parte do meu codigo:

require_once("api/auth.php");

function okLogin($orkutApi){
$orkutApi->login();
}

function fetchUser($orkutApi){

$profileFields = array( 'displayName',
'thumbnailUrl',
'gender',
'name',
'emails'
);

$me = array('method' => 'people.get',
'params' => array('userId' => '@me', 'groupId' => '@self', 'fields'
=> $profileFields),
);

$orkutApi->addRequest($me,'self');

return $orkutApi->execute();
}

[...]

function getEmails($userData){
$temp = $userData['self']['data']['emails'];
$count = count($temp);
$emails = array();
for($i=0;$i<$count;$i++){
$emails[] = $temp[$i]['value'];
}
return $emails;
}

Robson Dantas

unread,
May 4, 2011, 10:39:40 AM5/4/11
to orkut-ph...@googlegroups.com
Se estava retornando, era algum bug do lado do Orkut, já que essa informação é um identificador pessoal que não é autorizado a retornar.

De qualquer forma, vou perguntar ao Google se houve algum update em relação a isso.

Robson Dantas
@robsondantas

Romulo

unread,
May 4, 2011, 1:21:36 PM5/4/11
to Orkut php client
Serio Robsom?! Um bug?! Nossa!! Você pode me direcionar para algum
site oficial que possa comprovar isso para meu cliente?

Obrigado.

Robson Dantas

unread,
May 4, 2011, 1:31:38 PM5/4/11
to orkut-ph...@googlegroups.com
Veja:

Available Data will be made available to the application if the user has the application installed AND has chosen the "share with everyone" privacy setting for the field in question.
Not Applicable (N/A) These fields are not included in orkut and hence are not available to applications.
Not Yet Implemented These fields may be available to apps in the future.
Sensitive Information These fields are not available to applications.
Personally Identifiable Information These fields are not available to applications.

orkut field OpenSocial field orkut access policy
Primary email EMAILS Personally Identifiable Information
Secondary emails EMAILS Personally Identifiable Information
Google Talk IM N/A N/A
IM usernames N/A N/A
Home phone PHONE_NUMBERS Personally Identifiable Information
Cell phone PHONE_NUMBERS Personally Identifiable Information
SMS PHONE_NUMBERS Personally Identifiable Information
Address CURRENT_LOCATION, ADDRESSES Personally Identifiable Information
City, State, Country CURRENT_LOCATION, ADDRESSES Available
Latitude / Longitude CURRENT_LOCATION, ADDRESSES Available
Zip/postal code CURRENT_LOCATION, ADDRESSES Personally Identifiable Information

2011/5/4 Romulo <rodo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages