0

PHP SDK issue

I am using Yahoo PHP SDK.

CODE:

require("Yahoo.inc");  

define('CONSUMER_KEY', "consumerkey");  
define('CONSUMER_SECRET', "consumersecret");  
define('APPID', "appid");  

$session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID); 

if($session) {  
  // Get the currently sessioned user.  
  $user = $session->getSessionedUser();  

  // Load the profile for the current user.  
  $profile = $user->getProfile();  
  print_r($profile);
}

I am getting $session value but $user->getProfile() gives no data.

Why this is happening?

by
0 Replies

Recent Posts

in Social Directory API