Giter Site home page Giter Site logo

XMPP about facebook-android-sdk HOT 6 CLOSED

facebook avatar facebook commented on April 24, 2024
XMPP

from facebook-android-sdk.

Comments (6)

yariv avatar yariv commented on April 24, 2024

Unfortunately XMPP isn't supported yet when using the new OAuth 2.0 authentication method, which the SDK uses. We're planning on adding support for XMPP soon.

from facebook-android-sdk.

yeliaz avatar yeliaz commented on April 24, 2024

Hello Yariv,
The authorize_success response no longer holds the Json object with the session key and secret.
Do you have the XMPP support in the official SDK now?
Alternatively, can the Jabber endpoint accept an OAuth 2.0 access token instead of a session key and secret pair?
Can you please point me on what should I do in order to access the chat stream, or at least ask the server side guys to put back the authorize_success response that was working ok the past 4 months.
Thanks

from facebook-android-sdk.

hades-6 avatar hades-6 commented on April 24, 2024

So how do I connect to xmpp chat? Where can I get this session key from??

from facebook-android-sdk.

yeliaz avatar yeliaz commented on April 24, 2024

Why is this issue closed? There is no API to access the XMPP stream.

from facebook-android-sdk.

pawanm avatar pawanm commented on April 24, 2024

When using facebook android sdk with SingleSignOn (SSO), the access token format actually changed.
Instead of getting traditional auth token which contains userid & session key as a part of authToken
now we get a different format of authToken

As Facebook Devs are still in process to support there rest apis with newly formated access token
meanwhile we can disable the SSO on android facebook sdk by changing DEFAULT_AUTH_ACTIVITY_CODE to -1 from 32665 (in Facebook.java)
This will invoke Traditional dialouge for granting acess token and in return you'll get access token which will contain session key in it.

Those who are looking for generating secure session key you need to add your own method in Facebook.java like

public String getSessionSecret(String accessToken) throws MalformedURLException, IOException
{
Bundle b = new Bundle();
b.putString("method", "auth.promoteSession");
b.putString("access_token", accessToken);
b.putString("session_key_only", "true");
String response = request(b);
return response;
}

from facebook-android-sdk.

pawanm avatar pawanm commented on April 24, 2024

Hey Yariv,
Its long time now .. is xmpp support with OAuth 2.0 issue resolved or any progress going on.

from facebook-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.