0

I have an app with uses facebook login to authenticate, it works perfectly when facebook native app is NOT installed in the phone, but when facebook native app IS INSTALLED i can't get the token.

I know is a "signature mismatch" problem but i am NOT the owner of the facebook app id, so i can't do anything here.

I would like to make this app prompt user/pass login even when the native facebook app is installed, in resume i want to make an app behave like there wasn't a native Facebook app installed.

Is there any way to do it?

Thank you!

D.Snap
  • 1,704
  • 1
  • 22
  • 15

1 Answers1

0

Thanks to Eugen Martynov who lead me in the right way i found my answer

//this is the facebook button
private LoginButton loginBtn;

//this goes in your implementation BEFORE everything you do
loginBtn.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);

And thats it, your app user is now forced to log via web, avoiding all potential "signature mismatch" problems :)

D.Snap
  • 1,704
  • 1
  • 22
  • 15
  • This is just workaround for your problem. Integration with native app gives a lot sweet things. For example user don't need to type login password in the each app – Eugen Martynov Jul 05 '14 at 15:12
  • Yes but i am using the facebook application id of another application that i DO NOT own, i need to log in with that facebook application id in order to get the token and use that application credentials. Yes, it probably break every EULA out there but my app is getting great success in the play store and Mr. Google didn't seems to mind. – D.Snap Jul 05 '14 at 15:23
  • That is changing things – Eugen Martynov Jul 05 '14 at 15:25