The hike will probably be fine if you're used to that sort of thing. It would be a good idea though to let your friends know you are fasting and may need to rest more often or for a bit longer. You may not but you don't want to feel the pressure to do more than you should while fasting. Always give yourself the option to rest when you need to if possible.