I have developed a application in java that connects to facebook on the basis of access token. I can produce access token manually by feeding in urls in browser.
But I need something that automatically give me an access token. I am getting no idea, whether I can do it by embedding a browser in java or I need to write any script(which language to use) for doing so.
Some guidance is required for getting this done.