Cannot connect to Facebook, hosts file seemingly ignored I have a Motorola Atrix. 

My country used to block Facebook, so I decided to add its ip to the /etc/hosts file about 3 months ago and it worked in the browser, but the Facebook app did not. 

Now my country has unblocked Facebook so I would like to clear my hosts file and use Facebook as normal. However, my phone cannot connect to Facebook normally even after I performed a factory reset. Other devices still work without the modified hosts file.

Also, if I add some test lines to the hosts file such as:

127.0.0.1 localhost
127.0.0.1 test


then try to ping test in a terminal emulator it returns unknown host.

Is my hosts file being ignored? Did I miss something? I have OTA Root Keeper and it seemed to keep root after I did a factory reset. Did it keep something related to networks, too?
Go to the Applications menu in settings -- at least that what I think it's called on Gingerbread, on on ICS it's just Apps -- select the Facebook app and clear the cache as well as the data. Then go to the /Android folder on your SD card and delete anything starting with com.facebook.

Finally, reboot your phone. If your problem was related to the Facebook app it should now be fixed.