Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8571365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:45:56+00:00 2026-06-11T18:45:56+00:00

I am trying to fetch the contact details using Yahoo OAuth in my code.

  • 0

I am trying to fetch the contact details using Yahoo OAuth in my code. The OAuth is working correctly and I am getting the following stdClass from Yahoo:

stdClass Object ( 
    [profile] => stdClass Object ( 
            [guid] => AA5JFPBIASDFFESAETKHA 
            [birthYear] => 1980 
            [birthdate] => 1/31 
            [created] => 2008-10-08T13:59:36Z 
            [displayAge] => 32 
            [gender] => M 
            [image] => stdClass Object ( 
                [height] => 192 
                [imageUrl] => http://socialprofiles.zenfs.com/images/636fb037c2791a06fda15adda78b38f0_192.jpg 
                [size] => 192x192 [width] => 192 
           )
           [location] => Noida, India 
           [memberSince] => 2002-03-04T11:38:32Z 
           [nickname] => Himanshu 
           [profileUrl] => http://profile.yahoo.com/AA5JFPBIZUNNQRHEA6R73NTKHA 
           [status] => stdClass Object (
                     [lastStatusModified] => 2011-10-27T17:03:35Z 
                     [linkTo] => 
                     [message] => Using Yahoo! mail after a long time.... Full of features that Gmail cannot come anywhere close to..... ) 
                     [isConnected] => false 
                     )

This is the print_r of the variable $profile on line 164 of my script. Now when I am trying to use this variable in my program, it is giving me an error like this:

Notice: Undefined property: stdClass::$profileUrl in /var/www/vhosts/xyz.com/httpdocs/PHP/yahoo-api-php-client/examples/simpleauth/simpleauth.php on line 165

Line 165 in my php script is $prfurl = $profile->profileUrl;

Can anyone help me what am I doing wrong here? This is Yahoo’s standard code and I have not done anything in it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:45:58+00:00Added an answer on June 11, 2026 at 6:45 pm

    It should be $prfurl = $profile->profile->profileUrl;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the contacts from Outlook (2007) using the following code: Outlook.Application
I am trying to fetch various email addresses from contact list of android mobile
I am trying to fetch wcf service from jquery. I have written below code
I am trying to fetch following case using FQL If few users have authorized
I'm trying to fetch some webpages using the code below: public static string FetchPage(string
I am trying to reproduce the following but my using rows from the database
I'm trying to fetch data from a page that resides on an intranet. The
I am trying to fetch a gzip from a URL and import it automatically
I am trying to fetch orders created in a specific period of dates using
I'm trying to fetch some JSON data from my server like so: var a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.