• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help on program to interact with a webserver

 
tro vial
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, i am trying to make a program to interact with a webserver.

This is supposed to be more or less generic, still don't have a specific purpose for it.

But to better illustrate what am trying to do, here is in example:

every time a friend on Facebook friends publishes something, the program would automatically place a like on my behalf.

Can this be done?
Is java an adequate language to do this? if not what is the most adequate?
Are there open source programs out there already doing this, so i can take ideas or even adjust the program to do what i want?


edit:
To better describe what i am trying to do:

The program would have to refresh from x to x seconds, search the server response for YYYYYYY event, and trigger a response to the server.
What is troubling me here is the communication with the server part.





thanks in advance

Best regards
 
Stephan van Hulst
Bartender
Pie
Posts: 5349
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check out Facebook's Graph API. It allows you to access Facebook through HTTP commands and OAuth. You can search for libraries that handle the HTTP protocol and OAuth authentication, or you can search for a library that already does this for you in Java.

http://developers.facebook.com/docs/reference/api/
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
every time a friend on Facebook friends publishes something, the program would automatically place a like on my behalf.

I hope that's just an example, and not something you're actually considering doing. IMO, that would be as annoying as those auto-replies to email from people who are using that just to acknowledge an email, even though they are not away from the office.

The first tool of choice for programmatic website access for me is always HtmlUnit (or JWebUnit, which builds on top of it).
 
tro vial
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:
I hope that's just an example, and not something you're actually considering doing. IMO, that would be as annoying as those auto-replies to email from people who are using that just to acknowledge an email, even though they are not away from the office.


Yes its an example on something everyone know, for easier comprehension.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic