N
N
Neudacknick2018-10-18 23:10:34
Facebook
Neudacknick, 2018-10-18 23:10:34

How to login to facebook through the console and get user data?

I need to get user data from a facebook page, but it turned out to be impossible to do this using the facebook api if the user is not using my application. I want to get the user's html page and parse it, but if you don't log in to Facebook, then not all fields that are available for the logged in user are available. Is it possible to somehow log in through the console and send a request to the facebook server through it, so that it returns the user's page to me with all the fields available to other users?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2018-10-19
@Neudacknick

Understand how Facebook authorization works, use the developer console in the browser. See what fields are sent to the site during authorization and what it returns. Which is then used for subsequent requests.
Most likely the algorithm will be as follows:
1. Request the main page. There will be one or two or more hidden fields with keys
on the page 2. Take these keys, login, password and send them to the login page. In response, you will receive cookies, you will need to use these cookies for each next request.
3. Get the right data using these cookies.
Perhaps there are pitfalls, necessary headings, etc., etc. Developer console to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question