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
  • 817
  • 2
  • 7
  • 14

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,874
  • 4
  • 36
  • 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,835
  • 9
  • 52
  • 70
  • 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