net.sf.fb4j.desktop
Class DesktopApplication

java.lang.Object
  extended by net.sf.fb4j.FacebookApplication
      extended by net.sf.fb4j.desktop.DesktopApplication

public class DesktopApplication
extends FacebookApplication

Author:
Gino Miceli, Mino Togna

Field Summary
 
Fields inherited from class net.sf.fb4j.FacebookApplication
apiKey, secretKey
 
Constructor Summary
DesktopApplication(java.lang.String apiKey, java.lang.String secretKey)
           
 
Method Summary
 java.lang.String getLoginUrl(java.lang.String authToken)
           
 java.lang.String getLoginUrl(java.lang.String authToken, java.lang.String next, boolean popup, boolean forceLogin, boolean hideSaveLoginCheckbox)
           
 FacebookSession getSession()
           
 boolean isUserLoggedIn()
           
 FacebookSession requestSession(java.lang.String token)
          Return the Facebook Session given the token as input
 java.lang.String requestToken()
           
 
Methods inherited from class net.sf.fb4j.FacebookApplication
getApiKey, getInstallUrl, getLoginUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopApplication

public DesktopApplication(java.lang.String apiKey,
                          java.lang.String secretKey)
Method Detail

requestToken

public java.lang.String requestToken()
                              throws FacebookClientException
Throws:
FacebookClientException

isUserLoggedIn

public boolean isUserLoggedIn()

requestSession

public FacebookSession requestSession(java.lang.String token)
                               throws FacebookClientException
Return the Facebook Session given the token as input

Parameters:
token - to create the session
Returns:
a new Facebook Session
Throws:
FacebookClientException

getSession

public FacebookSession getSession()

getLoginUrl

public java.lang.String getLoginUrl(java.lang.String authToken)

getLoginUrl

public java.lang.String getLoginUrl(java.lang.String authToken,
                                    java.lang.String next,
                                    boolean popup,
                                    boolean forceLogin,
                                    boolean hideSaveLoginCheckbox)


Copyright © 2008. All Rights Reserved.