How to set it as a friend to friends contents

How to set the site so that only friends can view another friends contents such as blogs..pictures wall.. Non friend should not be able to see another user content 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking