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

  • Home
  • SEARCH
  • 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 6682819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:44:59+00:00 2026-05-26T04:44:59+00:00

I am creating a facebook chat client using asmack library. Creating a connection, retrieval

  • 0

I am creating a facebook chat client using asmack library. Creating a connection, retrieval of contacts, establishing a chat, everything goes fine. However, when a user goes offline, it takes a while (about a minute or so) before my

presenceChanged

method in the RosterListener is executed. When a user goes online, presenceChanged method is executed almost immediately. Code I am using is just a simple RosterListener:

roster.addRosterListener(new RosterListener() {
// Ignored events
public void entriesAdded(Collection addresses) {}
public void entriesDeleted(Collection addresses) {}
public void entriesUpdated(Collection addresses) {}
public void presenceChanged(Presence presence) {
//do something to add/remove contact from list
}
});

Is this something Facebook related? Or Smack related? Is there any workaround for this?

  • 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-05-26T04:45:00+00:00Added an answer on May 26, 2026 at 4:45 am

    I am using asmack in android using my own openfire server and the presence works fine. I think its kinda facebook related because even on facebook website sometime it happens that you see a person online and start a chat, it eventually changes the status to offline.
    Try removing or adding a friend to see if you roster works, show a log in the method enteries updated. if the entries are instantly updated than it means that this is a facebook related issue.

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

Sidebar

Related Questions

I'm Creating a facebook application using apache-tomcat. I use the Java Facebook API. It
I am creating application in facebook using iframe. In that i want to redirect
so i'm creating a login_url using php framework and getLoginUrl() . if my facebook
Which library/project is currently usable for creating Facebook applications? This is a followup to
Does anyone know the recommended way of creating a FaceBook 'likes' button using the
I 'm creating FaceBook like application and everything is centered around Person model. Status,
I am creating a Facebook App using Django. When I access my webpage directly
I'm creating my own Facebook button by using the following istructions: http://www.kimwoodbridge.com/how-to-create-your-one-facebook-share-url/ However my
i am creating login code for facebook connect on our site, however i cannot
I am creating a canvas application using the Facebook C# SDK and am trying

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.