Make all the link buttons as visible=false by default.
Then you can use this pseudocode to show the link buttons on the basis of the preferences set for the profile and by checking the authenticity of the logged in user
if(Profile.Privacy==Privacy.Public)
{
lnkbtnPublic.Visible=true;
}
if(Profile.Privacy==Privacy.MyNetwork && User.NetworkId== Session["MyNetworkId"])
{
lnkbtnNetwork.Visible=true;
}
if(Profile.Privacy==Privacy.Private && User.Id== Session["MyUserId"])
{
lnkbtnPrivate.Visible=true;
}