1. Download our Official Android App: Forums for Android!

Apps Cookies

Discussion in 'Android Development' started by nitin_grewal, Aug 20, 2010.

  1. nitin_grewal

    nitin_grewal Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Aug 11, 2010

    Aug 11, 2010
    2
    0
    5
    I am trying to store cookies from a URL and then using FB to login into that WebUrl. But now the FB login is not working properly....getting

    nullpointerexception when doing login/logout
    private class FBSessionDelegateImpl extends FBSessionDelegate {

    @Override
    public void session_didLogin(FBSession session, Long uid) {
    // we check if the user already has the permissions before displaying permission button
    // checkPermission();

    mHandler.post(new Runnable() {
    public void run() {
    // _feedButton.setVisibility(View.VISIBLE);

    }
    });

    String fql = "select uid,name from user where uid == " + session.getUid();

    Map<String, String> params = Collections.singletonMap("query", fql);
    FBRequest.requestWithDelegate(new FBRequestDelegateImpl()).call("facebook.fql.query", params);
    }



    @Override
    public void sessionDidLogout(FBSession session) {

    mHandler.post(new Runnable() {
    public void run() {
    _label.setText("");

    // startActivity(new Intent(FBloginProgram.this, SecondScreen.class));
    // _permissionButton.setVisibility(View.INVISIBLE);
    // _feedButton.setVisibility(View.INVISIBLE);
    }
    });
    }

    Can somebody help me out..its kinda important
     

    Advertisement

Share This Page

Loading...