Google "Facebook Java API". If you have any specific questions about the available examples though, you can ask about them here.
posted 6 years ago
I am trying to fetch Posts from Facebook with a particular keyword. I read that it can be fetched from url : http://graphs.facebook/searchkeyword. This is giving me required Output. My plan is to hit this URL from java code and parse the JSON output. The problem is this is giving data only If from my browser I am logged in to facebook. But I am not understanding is how will i login from java code.