Now, in order to find this secret URL we can use to access the API or access Facebook without having
JavaScript enabled.
We can take a look and use the inspector in the developer tools in Firefox.
We click on the login here and if we go a bit up we can see this form tag here with the method of post
and the URL inside of the action here.
So if we go ahead and copy this action URL here.
Copy that.
And we go inside of Postman.
And we paste the URL in here and then we change this to post.
And then we need to add our email and our password for Facebook.
So we go inside of the body in here in Postman.
If you don't have Postman already, just Google Postman and download it.
It's free to use and it's really cool for exploring APIs and things like this.
So inside of the body section, go and click X vive form URL encoded.
Basically it's formatting the data so that it's the same way as when you're using a web page and submitting
data via via post.
So then we type in our Facebook email.
And we type in pass.
That's going to be our Facebook password.
And then we say send.
And we get a bunch of text, which is basically a web page.
And here we can see.
Basically we are inside of the page now.
So now we can see I'm basically going I'm going straight into Facebook.
But here we can see some post in here.
And well, that's basically like seeing your wall, your Facebook wall.
Then you can go on and scrape as much data as you want.
Of course, it will probably have some kind of throttling.
And, um, well, in the next lecture, let's look at how we actually do this inside of requests inside
NodeJS.