Reputation: 317
I'm creating an Android app which allows the user to log in via facebook
This is working fine when I run the app on my emulator, but when I test it on my mobile device, I receive the following:
10-30 16:50:43.784 24503-24503/com.example.user.sociall2 I/chromium: [INFO:CONSOLE(0)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (0)
10-30 16:50:43.798 24503-24503/com.example.user.sociall2 D/logOutput: FBLogInError: net::ERR_NAME_NOT_RESOLVED
Can anybody tell me why and how I can solve this?
Upvotes: 1
Views: 4377
Reputation: 2417
if your internet provider (Wifi) restricting to use facebook. it will throw the same error.
I spent almost some hours to identify it.
ERR_NAME_NOT_RESOLVED at com.facebook.login.LoginManager.onActivityResult > > >
onError: net::ERR_NAME_NOT_RESOLVED at com.facebook.login.LoginManager.onActivityResult(LoginManager.java:190) at com.facebook.login.LoginManager$1.onActivityResult(LoginManager.java:159) at com.facebook.internal.CallbackManagerImpl.onActivityResult(CallbackManagerImpl.java:82)
so check facebook in your browser first.
Upvotes: 2
Reputation: 540
Error 105 (net::ERR_NAME_NOT_RESOLVED): The server could not be found.
I hope this work for you:
https://productforums.google.com/forum/#!topic/chrome/oCUYZsG8VJU
Upvotes: 0
Reputation: 805
you can use the following code to perform facebook login using facebook sdk 4.7 facebook login
Upvotes: -1