If you're using an Apify actor with Puppeteer, you will need to log in to a website using Puppeteer to access data. Here's how you can easily do that:
Navigate to the page (e.g. facebook.com).
Locate the login form using DevTools – right-click the form and select Inspect.
Find the IDs of the username/e-mail input, password input, and submit button.

Code your actor to navigate to the page, fill in your details in the form, and click the Log in button.
You can save and reuse your cookies for future runs using the
page.cookies()
object.
See full code examples and more details in our documentation.