I am trying to use org.apache HttpClient and the Facebook API to create a server application. It should automatically login to facebook using the username and password provided in the configuration file.
In this application, I know the application identifier, API_KEY and SECRET. I also have, as I said, a username and password.
For obvious reason (I don’t have a user interface) I can’t use the built-in browser in my application. My application should simply create a message on the wall of the user account when it is called, so basically when I start the application I have to follow these steps:
- Login with user credentials
- Post to wall
- disconnect
At the moment, I am faced with the first problem: automatic login. I read, looking on the Internet, that on Facebook login can be done ONLY through the user's manual action. I also tried to simulate a browser through the HttpClient org.apache library, but at some point I am always lost.
So, my first question: - Is it possible to automatically log in through this type of application? - If the answer to the first question is yes, can someone give a simple and understandable tutorial on how to do this?
Thanks a lot Charlie
source
share