1

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?

maxshuty
  • 9,708
  • 13
  • 64
  • 77
Natalia Sharon
  • 216
  • 2
  • 17

4 Answers4

11

ensure you're connected to the internet everyone..

Natalia Sharon
  • 216
  • 2
  • 17
2

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.

RBK
  • 2,481
  • 2
  • 30
  • 52
0

Error 105 (net::ERR_NAME_NOT_RESOLVED): The server could not be found.

I hope this work for you:

  • Click Start =>Run, type in CMD, press OK.
  • Copy and paste this into the Command prompt:
  • netsh winsock reset catalog
  • Press Enter
  • Then copy and paste this in:
  • netsh int ip reset reset.log
  • Press Enter.
  • When finished restart your computer.

https://productforums.google.com/forum/#!topic/chrome/oCUYZsG8VJU

-1

you can use the following code to perform facebook login using facebook sdk 4.7 facebook login

Community
  • 1
  • 1
Kushal
  • 795
  • 1
  • 5
  • 23