0

Birthday in Y!OS PHP SDK

Hi All,

I am working on a Yahoo! App which involves the usage of Profile Information of the logged in user. The Application is being developed using yos-social-php and is hosted on one of our Servers.

As per the requirement, I need the Birthday of the user for a special task. To achieve this, I loaded the user profile and echoed it in the browser, but, the profile doesn't have Birthday in it.

Following is a snippet:

CODE
$yahoo_user = $yahoo_session->getSessionedUser();
$user_profile = $yahoo_user->loadProfile();


Can someone please tell me how I can load the complete user profile or at least get the Birthday of the user.

Thanks in advance.

Muhammad Haseeb Khan
TkXel [www.tkxel.com]

by
1 Reply
  • If the profile isn't returning the birthday using the standard REST requests then you can try using YQL. You should be able to run a statement like $yahoo_user->query('select * from social.profile where guid=me'); to return the profile of the user. I just checked this on the YQL console and it does have the birthday embedded in the return object.

    Give that a shot and see if it works.

    - Jon
    0
This forum is locked.

Recent Posts

in Y!OS SDKs