tropicana
tropicana

Reputation: 1433

Facebook Event Json Mesage- how can i get it?

I would like to ask if someone know how to grab a facebook event json message. It doesnt matter if it has to happen programatically. I just want to be able to read the message one way or another.

thanks in advance.

P.s. Maybe an awful question but here you go !!!

Upvotes: 0

Views: 466

Answers (1)

Jim Raynor
Jim Raynor

Reputation: 2268

I once had to code a small chunk of code to parse a json-encapsulated message. However recently I found out there's a handy solution for it if you use Java

Resty is a small, convenient library to talk to RESTful services from Java. It’s surprisingly complex to do the simplest HTTP calls with the standard Java library. Resty hopes to change that.

http://beders.github.com/Resty/Resty/Overview.html

    Resty r = new Resty();
Object name = r.json("http://ws.geonames.org
   /postalCodeLookupJSON?postalcode=66780&country=DE")
  .get("postalcodes[0].placeName");

Just import a small jar lib and you'll be surprised. I currently use this class for getting info from url API.

Upvotes: 1

Related Questions