Cookies


Last Updated:

  1. nitin_grewal

    nitin_grewal New Member This Topic's Starter

    Joined:
    Aug 11, 2010
    Messages:
    2
    Likes Received:
    0
    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...