Search in sources :

Example 11 with SessionTracker

use of com.facebook.internal.SessionTracker in project phonegap-facebook-plugin by Wizcorp.

the class FacebookFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    sessionTracker = new SessionTracker(getActivity(), new DefaultSessionStatusCallback());
}
Also used : SessionTracker(com.facebook.internal.SessionTracker)

Example 12 with SessionTracker

use of com.facebook.internal.SessionTracker in project openkit-android by OpenKit.

the class LoginButton method finishInit.

private void finishInit() {
    setOnClickListener(new LoginClickListener());
    setButtonText();
    if (!isInEditMode()) {
        sessionTracker = new SessionTracker(getContext(), new LoginButtonCallback(), null, false);
        fetchUserInfo();
    }
}
Also used : SessionTracker(com.facebook.internal.SessionTracker)

Aggregations

SessionTracker (com.facebook.internal.SessionTracker)12 FacebookException (com.facebook.FacebookException)2 Session (com.facebook.Session)2 SessionState (com.facebook.SessionState)2