Note that there are some explanatory texts on larger screens.

plurals
  1. PONew Facebook API 3.0. and ActionBarSherlock compatibility
    primarykey
    data
    text
    <p>I'm reading facebook Android API 3.0 documents, and I do not understand what does session has to do with background activities. In all examples I'm supposed to extend "FacebookFragment". Well, that would be nice if my whole app is not extending "SherlockFragment" so I do not see extending FacebookFragment as an option.</p> <p>If I use the code from SessionLoginExample, and put my AppID in Strings in the very same string as facebook does I get the:</p> <p><strong>Error</strong></p> <pre><code>10-22 17:04:26.464: E/AndroidRuntime(5491): FATAL EXCEPTION: main 10-22 17:04:26.464: E/AndroidRuntime(5491): java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.specsavers.moodspecs/nl.specsavers.moodspecs.LauncherActivity}: java.lang.NullPointerException: Argument applicationId cannot be null </code></pre> <p>I'm trying to set up the initial check if the app is installed or not, and if session exists or not.</p> <pre><code> Settings.addLoggingBehavior(LoggingBehaviors.INCLUDE_ACCESS_TOKENS); Session session = Session.getActiveSession(); if (session == null) { if (savedInstanceState != null) { session = Session.restoreSession(this, null, statusCallback, savedInstanceState); } if (session == null) { session = new Session(this); } Session.setActiveSession(session); if (session.getState().equals(SessionState.CREATED_TOKEN_LOADED)) { session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback)); } } </code></pre> <p>I need to be able to somehow put my App ID somewhere that it is actually OK, but I can't find where to put it. </p> <p>I need to know If I can avoid extending FacebookFragment as I use SherlockFragment.</p> <p>Tnx.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload