• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

help on program to interact with a webserver

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 14499
325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic