It is forbidden to think, speak or read words of Torah while using the bathroom as per Shulchan Aruch O:C 85:2 [based on Shabbos 40b]
If a person is using the bathroom and they know that from time to time pesukim or other Torah related materials show up in their Facebook feed (or similar social feed apps) are they allowed to browse Facebook at that time?
If the answer is yes and some Torah related material does show up what is the best course of action? Scroll past it or close the phone?