Button to social media page

I’m building the Personal Portfilio project and it says it wants a button to the creator’s social media pages. But don’t you have to be logged into the page to view it and if you are logged in and someone clicks a button to that page couldn’t they hack your page? Not quite sure what they want here?

Your social media accounts are visible to the public by default (maybe). You don’t have to be logged in to see your profile page.

But it depends on your social media accounts’ privacy settings. For instance, if you set the visibility of your Facebook account to be visible only to your friends, your profile shouldn’t be visible to the public.

In your portfolio, you just need to provide a link to your profile page, if it’s publicly visible.