If the add friend button is gray, it means that you are not friends with the person who added you.