The intention of this feature is to be able to post "friends only" posts, not to view only posts sent by my friends.

You will also have to implement the ability to add a friend via. the UI, so there should be an additional feature file for that.