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 8155301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:37:57+00:00 2026-06-06T16:37:57+00:00

I found sample Facebook Chat Project for iOS here . also i got the

  • 0

I found sample Facebook Chat Project for iOS here.

also i got the facebook chat doc here

Same way,

Did any one know facebook chat example app or way to implement fb chat in android?

  • 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-06T16:37:58+00:00Added an answer on June 6, 2026 at 4:37 pm

    There is one Android Open Source Project available : Beem Project and For connecting Facebook chat you can used following guidelines.

    Steps for implementing Facebook chat API in Android:

    1. First we have to implement MemorizingTrustManager Library project in existing project.

      => For that you have to copy following three files in existing project

      • MemorizingTrustManager/src/de/duenndns/ssl/MTMDecision.java
      • MemorizingTrustManager/src/de/duenndns/ssl/MemorizingActivity.java
      • MemorizingTrustManager/src/de/duenndns/ssl/MemorizingTrustManager.java

      => And add following values in values/string.xml

      <resources>
          <string name="mtm_accept_cert">Accept Unknown Certificate?</string>
          <string name="mtm_decision_always">Always</string>
          <string name="mtm_decision_once">Once</string>
          <string name="mtm_decision_abort">Abort</string>
          <string name="mtm_notification">Certificate Verification</string>
      </resources>
      
    2. Second step, Instead of using SASLAuthentication such as X-FACEBOOK-PLATFORM, You can used following code to connect with Facebook and login using your Facebook Jabber ID (username@chat.facebook.com)

      public void connectToFb() throws XMPPException {
      
      ConnectionConfiguration config = new ConnectionConfiguration("chat.facebook.com", 5222);
      config.setSASLAuthenticationEnabled(true);
      config.setSecurityMode(SecurityMode.required);
      config.setRosterLoadedAtLogin(true);
      config.setTruststorePath("/system/etc/security/cacerts.bks");
      config.setTruststorePassword("changeit");
      config.setTruststoreType("bks");
      config.setSendPresence(false);
      try {
          SSLContext sc = SSLContext.getInstance("TLS");
          sc.init(null, MemorizingTrustManager.getInstanceList(this), new java.security.SecureRandom());
          config.setCustomSSLContext(sc);
      } catch (GeneralSecurityException e) {
          Log.w("TAG", "Unable to use MemorizingTrustManager", e);
      }
      XMPPConnection xmpp = new XMPPConnection(config);
      try {
          xmpp.connect();
          xmpp.login("facebookusername", "****"); // Here you have to used only facebookusername from facebookusername@chat.facebook.com
          Roster roster = xmpp.getRoster();
          Collection<RosterEntry> entries = roster.getEntries();
          System.out.println("Connected!");
          System.out.println("\n\n" + entries.size() + " buddy(ies):");
          // shows first time onliners---->
          String temp[] = new String[50];
          int i = 0;
          for (RosterEntry entry : entries) {
              String user = entry.getUser();
              Log.i("TAG", user);
          }
      } catch (XMPPException e) {
          xmpp.disconnect();
          e.printStackTrace();
      }
      }
      

    At last, If you get all the Buddy list of your Facebook account in LogCat View, than you can implement simple Facebook chat using this tutorial.

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

Sidebar

Related Questions

I found this sample but its for web. Can any one check this proj.
I am attempting to run a sample in facebook-csharp-sdk found here https://github.com/facebook-csharp-sdk/facebook-csharp-sdk . I
I tryed the sample code found here: https://developers.facebook.com/docs/creditsapi/ Even if i added my company
I've just found a great sample of Facebook Connect on Blackberry by Eki Y.
I guess that I am missing something here. After having found this sample within
Here in Apple's sample code I found this type of persistence storage. Can anyone
I try to follow the facebook-android tutorial from here: https://developers.facebook.com/docs/mobile/android/build/#sample I am working in
I found one sample application from the Blackberry knowledgebase. From that application I have
I found some sample code from here . static UIImage *backgroundImageDepressed; /** * */
Ok, so I'm using the default project found everywhere to show off the Facebook

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.