Please sign in to your OneAll account
to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
I am having some problem I don't know whether it is a problem from my end or oneall end.
The problem I have integrated oneall android sdk on my android phone when I login oneall facebook on my android phone if there is success then I return user_token and indentity_token based on the user_token which I get on my php end I use curl request to get user data based on user_token which is returned from the adnroid response.
In some users token email is received while in other users token email is not received.
Can you please tell me why this is so.
My code is this.
//Your Site Settings
$site_subdomain = 'testjetmagento';
$site_public_key = 'xxxx';
$site_private_key = 'xxxx';
//API Access Domain
$site_domain = $site_subdomain . '.api.oneall.com';
$resource_uri = 'https://' . $site_domain . '/users/60ab8520-c224-4b36-9be3-604fe74f93c7.json';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $resource_uri);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_USERPWD, $site_public_key . ":" . $site_private_key);
curl_setopt($curl, CURLOPT_TIMEOUT, 15);
curl_setopt($curl, CURLOPT_VERBOSE, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_FAILONERROR, 0);
$result_json = curl_exec($curl);
You are right in some user_token i am getting email and some emails i am not getting emails.
This can be normal, if the user profile does not provide an email address.
This is the case for Twitter (with default permission on the Twitter app), and in some other cases (user did not provide an address).
With which social network profiles don't you get an address?