Food fasting was commanded in the OT. However, people voluntarily practiced fasting for food and drink in OT and NT.
Paul wrote about sex and fasting in 1 Corinthians 7:
Paul wrote about sex and fasting in 1 Corinthians 7:
If you want to fast from social media, that's fine, Luke 9:5 Do not deprive one another except with consent for a time, that you may give yourselves to fasting and prayer; and come together again so that Satan does not tempt you because of your lack of self-control.
1 John 2:23 If anyone would come after me, let him deny himself and take up his cross daily and follow me.
See How to get closer to God and grow in faith?.15 Do not love the world or the things in the world. If anyone loves the world, the love of the Father is not in him.