A
A
AxMuha2017-03-24 04:45:04
Facebook
AxMuha, 2017-03-24 04:45:04

How to get facebook user avatar by id in a simple way?

Maybe without api at all? Or if through api, then without authorization of users whose avant-garde is needed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Philipp, 2017-03-24
@AxMuha

More or less like this
picture?type=large

R
Rou1997, 2017-03-24
@Rou1997

It’s elementary without an API, registration is not required there, even AJAX is probably not there, first HTML is downloaded by HTTP request at the page URL, then it is parsed using a library like Jsoup, HtmlAgilityPack, etc., the right one is found <img>, all that remains is to make another HTTP request to download byte[]by img src.
You can also use headless browsers, but slower.
For a beginner, it should not take more than two or three man-days, for an experienced one from five minutes to two hours.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question