Package com.facebook.api.schema

Examples of com.facebook.api.schema.SessionInfo


  public String auth_getSession( String authToken ) throws FacebookException, IOException {
    if ( null != this._sessionKey ) {
      return this._sessionKey;
    }
    JAXBElement obj = (JAXBElement) callMethod( FacebookMethod.AUTH_GET_SESSION, new Pair<String,CharSequence>( "auth_token", authToken.toString() ) );
    SessionInfo d = (SessionInfo) obj.getValue();
    this._sessionKey = d.getSessionKey();
    this._userId = d.getUid();
    this._expires = (long) d.getExpires();
    if ( this._isDesktop ) {
      this._sessionSecret = d.getSecret();
    }
    return this._sessionKey;
  }
View Full Code Here


   * @param authToken
   *            the token returned by auth_createToken or passed back to your callback_url.
   */
  public String auth_getSession( String authToken ) throws FacebookException, IOException {
    JAXBElement obj = (JAXBElement) callMethod( FacebookMethod.AUTH_GET_SESSION, new Pair<String,CharSequence>( "auth_token", authToken.toString() ) );
    SessionInfo d = (SessionInfo) obj.getValue();
    this.cacheSessionKey = d.getSessionKey();
    this.cacheUserId = d.getUid();
    this.cacheSessionExpires = (long) d.getExpires();
    if ( this._isDesktop ) {
      this.cacheSessionSecret = d.getSecret();
    }
    return this.cacheSessionKey;
  }
View Full Code Here

TOP

Related Classes of com.facebook.api.schema.SessionInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.