[Android Software/Hacking General [Developers Only]] nidpancho:
Facebook Messenger fix

I went and loaded the MoaAB hosts file into Notepad++ and did the following...

Did a find command using the string ".*facebook.com" and got 152 hits. I parsed them down to about 69 domains that i'd consider "legit" because they end in ".facebook.com". I kept the ad domains on for obvious reasons and deleted the following...

0.0.0.0 0-act.channel.facebook.com
0.0.0.0 0-edge-chat.facebook.com
0.0.0.0 1-act.channel.facebook.com
0.0.0.0 1-edge-chat.facebook.com
0.0.0.0 2-act.channel.facebook.com
0.0.0.0 2-edge-chat.facebook.com
0.0.0.0 3-act.channel.facebook.com
0.0.0.0 3-edge-chat.facebook.com
0.0.0.0 4-act.channel.facebook.com
0.0.0.0 4-edge-chat.facebook.com
0.0.0.0 5-act.channel.facebook.com
0.0.0.0 5-edge-chat.facebook.com
0.0.0.0 6-act.channel.facebook.com
0.0.0.0 6-edge-chat.facebook.com
0.0.0.0 act.channel.facebook.com
0.0.0.0 api.ak.facebook.com
0.0.0.0 api.connect.facebook.com
0.0.0.0 api-read.facebook.com
0.0.0.0 app.logs-facebook.com
0.0.0.0 ar-ar.facebook.com
0.0.0.0 attachments.facebook.com
0.0.0.0 badge.facebook.com
0.0.0.0 b-api.facebook.com
0.0.0.0 beta-chat-01-05-ash3.facebook.com
0.0.0.0 b-graph.facebook.com
0.0.0.0 bigzipfiles.facebook.com
0.0.0.0 b.static.ak.facebook.com
0.0.0.0 channel-ecmp-05-ash3.facebook.com
0.0.0.0 channel-staging-ecmp-05-ash3.facebook.com
0.0.0.0 channel-testing-ecmp-05-ash3.facebook.com
0.0.0.0 check4.facebook.com
0.0.0.0 check6.facebook.com
0.0.0.0 creative.ak.facebook.com
0.0.0.0 de-de.facebook.com
0.0.0.0 developers.facebook.com
0.0.0.0 d.facebook.com
0.0.0.0 edge-chat.facebook.com
0.0.0.0 error.facebook.com
0.0.0.0 es-la.facebook.com
0.0.0.0 fr-fr.facebook.com
0.0.0.0 graph.facebook.com
0.0.0.0 hi-in.facebook.com
0.0.0.0 inyour-slb-01-05-ash3.facebook.com
0.0.0.0 it-it.facebook.com
0.0.0.0 ja-jp.facebook.com
0.0.0.0 logiciel-pour-pirater-un-compte-facebook.com
0.0.0.0 mqtt.facebook.com
0.0.0.0 orcart.facebook.com
0.0.0.0 origincache-starfacebook-ai-01-05-ash3.facebook.com
0.0.0.0 pixel.facebook.com
0.0.0.0 profile.ak.facebook.com
0.0.0.0 pt-br.facebook.com
0.0.0.0 secure-profile.facebook.com
0.0.0.0 ssl.connect.facebook.com
0.0.0.0 s-static.ak.facebook.com
0.0.0.0 s-static.facebook.com
0.0.0.0 star.c10r.facebook.com
0.0.0.0 star.facebook.com
0.0.0.0 static.ak.connect.facebook.com
0.0.0.0 static.ak.facebook.com
0.0.0.0 static.thefacebook.com
0.0.0.0 staticxx.facebook.com
0.0.0.0 touch.facebook.com
0.0.0.0 upload.facebook.com
0.0.0.0 vupload2.vvv.facebook.com
0.0.0.0 vupload.facebook.com
0.0.0.0 zh-cn.facebook.com
0.0.0.0 zh-tw.facebook.com

I then decided to find all of the fbcdn.net domain entries so that content (hopefully GIPHY) loads in messenger. I did a control find with ".*fbcdn.net" and deleted the following entries...

0.0.0.0 b.static.ak.fbcdn.net
0.0.0.0 creative.ak.fbcdn.net
0.0.0.0 ent-a.xx.fbcdn.net
0.0.0.0 ent-b.xx.fbcdn.net
0.0.0.0 ent-c.xx.fbcdn.net
0.0.0.0 ent-d.xx.fbcdn.net
0.0.0.0 ent-e.xx.fbcdn.net
0.0.0.0 external.ak.fbcdn.net
0.0.0.0 origincache-ai-01-05-ash3.fbcdn.net
0.0.0.0 photos-a.ak.fbcdn.net
0.0.0.0 photos-b.ak.fbcdn.net
0.0.0.0 photos-c.ak.fbcdn.net
0.0.0.0 photos-d.ak.fbcdn.net
0.0.0.0 photos-e.ak.fbcdn.net
0.0.0.0 photos-f.ak.fbcdn.net
0.0.0.0 photos-g.ak.fbcdn.net
0.0.0.0 photos-h.ak.fbcdn.net
0.0.0.0 profile.ak.fbcdn.net
0.0.0.0 scontent-a-lax.xx.fbcdn.net
0.0.0.0 scontent-a-sin.xx.fbcdn.net
0.0.0.0 scontent-a.xx.fbcdn.net
0.0.0.0 scontent-b-lax.xx.fbcdn.net
0.0.0.0 scontent-b-sin.xx.fbcdn.net
0.0.0.0 scontent-b.xx.fbcdn.net
0.0.0.0 scontent-c.xx.fbcdn.net
0.0.0.0 scontent-d.xx.fbcdn.net
0.0.0.0 scontent-e.xx.fbcdn.net
0.0.0.0 scontent-mxp.xx.fbcdn.net
0.0.0.0 scontent-vie-224-xx-fbcdn.net23.net
0.0.0.0 scontent-vie-73-xx-fbcdn.net23.net
0.0.0.0 scontent-vie-75-xx-fbcdn.net23.net
0.0.0.0 scontent.xx.fbcdn.net
0.0.0.0 s-external.ak.fbcdn.net
0.0.0.0 sphotos-a.xx.fbcdn.net
0.0.0.0 s-static.ak.fbcdn.net
0.0.0.0 static.ak.fbcdn.net
0.0.0.0 video.xx.fbcdn.net
0.0.0.0 vthumb.ak.fbcdn.net

I haven't tested this config because I'm still at work at the moment but I'll try it out when I get home tonight. Just wanted to post my work in case anyone else is experiencing similar issues with messenger.

if there are any glaring issues with allowing these domains that I'm not aware of, PLEASE, let me know.

I also found this just now...

https://developers.facebook.com/docs/workplace/additional-configuration/domains?_fb_noscript=1

I might need to do searches for akamaihd.net, fb.me, and fbxbx.com as well