Yes, it is possible to farm for a friend. You can repeat the task every 3h and it is possible to farm up to 9 ancient dreams per task (you'll need to give 3 to the NPC in order to finish the task, but the other 6 aren't used, so you can help up to 2 friends every time you do this task