Make sure you have a fan
relation in your Comments
model, then you can use the following to get all comments for each post and the fan relation for each comment:
facebook_posts::find()->joinWith('fans')->joinWith(['comments', 'comments.fan'])->all();