Hi, i want to create a website has a feature that when everyone has a Yahoo IM (login already) comes to my website, this feature know that and show their avatar in location i named it. How can i do to make it come true? plz help me. Thank you so much :)

Dani AI

Generated

Short answer: a site cannot reliably detect that a visitor is "already logged into Yahoo IM" without the visitor explicitly granting your site access. Browsers and IM providers isolate authentication and presence for privacy reasons, so passive detection (seeing someone is signed in just because they visited your page) is not realistic or safe.

Practical, reliable options:

  • Have commenters authenticate with their Yahoo account (use whatever Yahoo auth method is current). After the user grants permission your server can fetch the profile record and store the avatar URL, then show it beside comments. Typical server-side flow: register an app with the provider, redirect the user to authorize, receive a token/code, call the profile API, save the avatar URL and token metadata, and show the avatar for that commenter.
  • Offer users a simple profile step where they paste an avatar URL or upload an image when they post a comment. This is the easiest fallback and avoids provider APIs.
  • Provide a Gravatar/email option as an alternative so people who use that ecosystem get an avatar without extra steps.

Small display example (server-side rendering):

$avatar = $comment['avatar_url'] ?: '/images/default-avatar.png';
echo '<img src="'.htmlspecialchars($avatar, ENT_QUOTES, 'UTF-8').'" alt="" width="48" height="48">';

Notes, caveats and troubleshooting:

  • Respect user consent and the provider Terms of Service; do not scrape or try to sniff presence cookies.
  • Common causes of "avatar not showing": broken URL (404), mixed-content blocked by HTTPS, hotlink protection or referrer blocking, expired/privileged URLs returned by the API. Log the profile API response and test the avatar URL directly in a browser.
  • Cache avatar URLs locally (and refresh periodically) to avoid rate limits and broken external images.

Context from the thread: pointed toward the official presence/widget route, was right to flag security/privacy issues, and noted services that centralize IM logins — those services work because users explicitly log in to them first. The robust, privacy-safe solution is explicit authentication or a user-supplied avatar.

Recommended Answers

All 4 Replies

Hi, i want to create a website has a feature that when everyone has a Yahoo IM (login already) comes to my website, this feature know that and show their avatar in location i named it. How can i do to make it come true? plz help me. Thank you so much :)

Is what you're after?

Thank you so much. your answer very helpfull but i want more than that! I make a webpage that blogers Yahoo come to my webpage and write comment, their avatar (avatar of their blog) will appear beside their comment. Yahoo suppose to do this or not? By the way thank you so much for your answer :)

I would think this would be a security violation.

meebo.com can do it, and some other webpage too. Our webpage shares themes for Yahoo blogger (make free theme for everybody, someone order we make for them too), so i want to make this feature because blogger feel familiar to blog 360 when they come to our webpage (360.yahoo.com/theme360free). I think somewhere has a solution for this and i will find out. By the way thank you for all your advice :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.