I haven't done any programming for quite some time and recently decided i'd make a little program for my wife.
The idea is to read in a specified web page (in this case facebook...) and to tally certain comments. This part is all fine, the only problem is the only pages i can read in are ones where i am not signed in. I didn't know if there was a way to send cookies or whatever i need for the site to recognise it as signed in.

at the moment i'm just using:

public static BufferedReader read(String url) throws Exception{
return new BufferedReader(
new InputStreamReader(
new URL(url).openStream()));}

to read in the page.
Sorry if i make no sense.
any help is appreciated,