0

Basic sign-in issues

I have a very rudimentary app at http://apps.yahoo.com/-YsDU427g . The sign-in is not behaving the way I expect.

1. I go to the URL.
2. I see Yahoo's wrapper round the side (with Home, Profile, Info etc), and my app inside.
3. It asks me to sign in.
4. I do so, clicking the remember option.
5. It asks me to authorise my app. At this point the Yahoo wrapper has gone.
6. I do so.
7. It redirects me to my application's site, and the Yahoo wrapper has still gone.
8. If I go to that link again, I need to repeat the whole process.

So there are two problems:

1. The Yahoo wrapper is disappearing. I was expecting that to remain, and my app to appear within it, as it does when you first go there.
2. The "remember" option isn't working.

This is doubtless something stupid I've done. Suggestions?

by
7 Replies
  • When you said Yahoo wrapper, did you mean the loading animation?
    0
  • QUOTE (HS @ Dec 6 2010, 11:03 AM) <{POST_SNAPBACK}>
    When you said Yahoo wrapper, did you mean the loading animation?


    No, I mean the frame Yahoo puts round your app, with links to Home, Profile etc.
    0
  • Hi Edward, I just ran a test using your steps and I didn't see the issue that you mentioned.

    What OS / browser are you using?

    Thanks,
    Jon
    0
  • This is on Windows 7, with IE8 or FF3.6.

    What do you see?

    I've put screenshots here. Note the way the Yahoo framing appears in the first, but disappears after that, and the URL is an URL to my site.




    0
  • Ah my apologies, I thought you were referring to the Chrome of the platform instead of what was happening inside the application.

    This is most likely due to the content of your large view that is forcing the application to go through the sign-in process within the application (which shouldn't happen). Can you please post the source of the PHP file that you are using? This will allow us to take a look to see what the problem may be.

    Thanks,
    Jon
    0
  • Thanks for your reply.

    The application is split into several files, but I think the relevant part is this:

    <?php
    require_once('../yahoo-yos-social-php/lib/Yahoo.inc');

    error_reporting(E_ALL);

    YahooLogger::setDebug(true);
    $session = YahooSession::requireSession(YAHOO_CONSUMER_KEY,YAHOO_CONSUMER_SECRET,YAHOO_APPI
    D);

    # Fetch the logged-in (sessioned) user
    $user = $session->getSessionedUser();

    # Fetch the profile for the current user.
    $profile = $user->getProfile();

    # Find their email addresses.
    $emails = array();
    foreach ($profile->emails as $email)
    {
    array_push($emails, $email->handle);
    }

    ...and then more dull code
    0
  • QUOTE (Edward @ Dec 4 2010, 03:08 PM) <{POST_SNAPBACK}>
    I have a very rudimentary app at http://apps.yahoo.com/-YsDU427g . The sign-in is not behaving the way I expect.

    1. I go to the URL.
    2. I see Yahoo's wrapper round the side (with Home, Profile, Info etc), and my app inside.
    3. It asks me to sign in.
    4. I do so, clicking the remember option.
    5. It asks me to authorise my app. At this point the Yahoo wrapper has gone.
    6. I do so.
    7. It redirects me to my application's site, and the Yahoo wrapper has still gone.
    8. If I go to that link again, I need to repeat the whole process.

    So there are two problems:

    1. The Yahoo wrapper is disappearing. I was expecting that to remain, and my app to appear within it, as it does when you first go there.
    2. The "remember" option isn't working.

    This is doubtless something stupid I've done. Suggestions?
    0

Recent Posts

in YAP