First need to find the Hosts file, a different storage location for different operating systems, Hosts file under Windows system is basically a lot of people know, MAC system changes the Hosts file Here some difficulties, the following is a common system Hosts file editing method .
Windows
Open Windows Explorer navigate to C: \ windows \ system32 \ drivers \ etc \ hosts file to find, access to read and write permissions, use Notepad to open and modify.
Mac OS X
Open the application inside the terminal (terminal), enter sudo vi / etc / hosts, then use the vi editor to modify the saved file.
Linux such as Ubuntu
Navigate to the / etc, obtain hosts read and write permissions, and then save the changes.
After modifying the completion Hosts, can only be accessed through https way Facebook, you can not use the http access, access address is https://www.facebook.com, Chrome browser can automatically modify the settings by Facebook to use https.
Here is a complete Facebook's Hosts file available:
# Facebook Start
31.13.79.81 www.facebook.com
31.13.79.81 facebook.com
31.13.79.81 zh-CN.facebook.com
31.13.79.81 graph.facebook.com
69.171.225.31 www.connect.facebook.com
66.220.151.31 vupload.facebook.com
173.252.100.27 upload.facebook.com
61.213.189.98 static.ak.facebook.com
69.63.189.76 star.facebook.com
69.171.247.38 ssl.connect.facebook.com
66.220.149.96 ssl.facebook.com
69.171.227.30 secure-media.facebook.com
184.26.194.110 s-static.ak.facebook.com
69.171.247.22 s-static.facebook.com
118.214.190.105 profile.ak.facebook.com
173.252.100.27 pixel.facebook.com
69.171.245.18 photos-ash1.facebook.com
69.171.245.18 photos-ak-ash1.facebook.com
69.171.233.33 orcart.facebook.com
66.220.149.96 o.facebook.com
173.252.100.25 m.facebook.com
66.220.144.43 ldap.thefacebook.com
66.220.151.33 hphotos-ak-snc3.facebook.com
66.220.151.33 hphotos-ak-snc1.facebook.com
66.220.149.90 error.facebook.com
31.13.79.81 developers.facebook.com
69.171.240.99 d.facebook.com
69.171.227.19 creativeupload.facebook.com
184.31.111.139 connect.facebook.net
66.220.147.96 check4.facebook.com
69.171.227.26 chat.facebook.com
66.220.149.88 c.facebook.com
66.220.145.63 bigzipfiles.facebook.com
61.213.189.98 b.static.ak.facebook.com
69.171.237.36 apps.facebook.com
31.13.79.81 api.facebook.com
31.13.79.81 api-read.facebook.com
69.171.235.16 5-pct.channel.facebook.com
# Facebook End