user3100708
user3100708

Reputation: 148

Getting html code of facebook specific page

I am trying to get html code of specific page in facebook but the problem is that my code gives me the html of no-user in facebook.

String html = Jsoup.connect("https://www.facebook.com/mor.amit.3/about").get().html();
System.out.println(html);

For example when i try to do it, it gives me her page but from side of no-facebook user. how can i use this code and look on her profile from user side?

Upvotes: 2

Views: 776

Answers (1)

Madhawa Priyashantha
Madhawa Priyashantha

Reputation: 9872

you can't get birthday ,education or some specific information without login to facebook because of privacy settings of Facebook user.for example if you logout from fb and view that profile .you will get this .so there is no information about birthday .you have to log to fb using java then you will be able to download expected page

enter image description here

Upvotes: 1

Related Questions