mgcrea / cordova-facebook-connect

Cordova ARC plugin for the Facebook SDK
94 stars 43 forks source link

Android calling dialog() crashing [FIXED] #35

Open JcDenton86 opened 11 years ago

JcDenton86 commented 11 years ago

Hi!

Your plugin works great. Just a notice i wanted to make.

cordova.getContext() (FacebookConnect.java: line 230) is undefined in Cordova interface. So when calling dialog function the app crashes with this message

"...unable to add window token null is not valid..."

To get rid of that error i replaced cordova.getContext() with cordova.getActivity() and everything is working as it should.

Thanks again for your effort!

waqasghouri89 commented 10 years ago

Thanks for great help.... i was stuck at this point...