2

I've created an app that uses the Facebook SDK for logging in, using the accepted code in this post: https://stackoverflow.com/a/30230718/4529864.

It works great when deployed to my android phone (Nexus 4 with Lollipop, which has the facebook app installed).

When I use the emulator (Nexus 4 with Lollipop, which doesn't have the facebook app), it launches a webview login screen (https://i.stack.imgur.com/R69G0m.png). However, the 'Log In' button is unresponsive. No messages appear in the logs when I click the button. It just doesn't do anything!

Has anyone seen this before? Any suggestions on how to debug?

Community
  • 1
  • 1
IanS
  • 1,459
  • 1
  • 18
  • 23
  • We have exactly the same problem. Tested on Lenovo, Samsung and other devices with Android 4 and 5. Have you found a solution? – Michal Loksik Jan 14 '16 at 16:23
  • No solution yet. I'm think this is just an issue with the emulator (can't reproduce on a real device - can you?). Plus I suspect most users of my app will have the Facebook app installed. – IanS Jan 17 '16 at 15:20
  • Yes, we can. It happens for example on Lenovo A8 (4.4.2). No solution found yet and it is stopping us in publishing the app :/ (With FB app installed it works.) – Michal Loksik Jan 20 '16 at 15:03

1 Answers1

0

Have you tried installing the Facebook app in the emulator ? that is why it is opening webview.

Make sure you have internet connectivity enabled in your android app manifest. That should fix your issue.

lamdadj22
  • 126
  • 4
  • Yes, I have internet connectivity. How do I install Facebook on the emulator? This post doesn't help: http://stackoverflow.com/questions/28891844/installing-facebook-apk-on-android-emulator. – IanS Jan 17 '16 at 15:15
  • This still doesn't explain why the webview login is not working. – IanS Jan 17 '16 at 15:16