• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Cookies

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
 
Back
Top Bottom