1

facebook.authorize(this,new String[] { "email", "read_stream" },new DialogListener() giving me problem on mobile phone... but its working on Emulator.. can anyone tell me what idone wrong

nileshbirhade
  • 787
  • 2
  • 6
  • 13

2 Answers2

3

Did you add this function? If not, just add it.

 protected void onActivityResult(int requestCode, int resultCode, Intent data)
 {  
   facebook.authorizeCallback(requestCode, resultCode, data);
 }
null pointer
  • 5,724
  • 3
  • 34
  • 66
Woodpecker
  • 31
  • 2
1

..take a look at my post from the other week found here

I found that the best way to get facebook integrated with your app is to look at the examples at github.

Community
  • 1
  • 1
dell116
  • 5,715
  • 9
  • 49
  • 68
  • U r right about login session but in authorize i make some changes and its working fine for me facebook.authorize(this,PERMISSIONS, facebook.FORCE_DIALOG_AUTH, new DialogListener() – nileshbirhade May 19 '11 at 08:16