Method 1 is suitable for clicking on the avatar of the person in the post, clicking on the attention (you don't have to click), and then clicking Add as a friend, but with the consent of the other party.
The second method is suitable for people who know the user name but have never met it. Click Search at the top of the post list, click Search, and then search for the person in the search box.