Facebook and Processing: an introduction
in
Programming Questions
•
2 years ago
Hi all
I've had a lot of spare time on my hand the last few days and I've been fooling around with processing and the mighty WEB.
All I want to do is for processing to communicate with a website, blog or similar, download informations from the page and turn them into values to use for other purposes (such as dimming led through an Arduino i.e. absolutely pointless programming exercise). I chose for now to use facebook as a target for experimenting since I thought many people had tried before already.
Anyway I've scanned the forum, the processing wiki, and the FB developer page hoping to understand how to do it, without much success.
I found out this line of code in here that uses REST API for FB:
Of course the API is now obsolete by what I can read from the FB Develop. page
and it says to use the Graph API even though it is not clear at all to me how to implement that into the coding. All I see is a bunch of https examples I don't know how to translate in useful coding for Process.
In the REST CODE I posted you can read that it access informations of the users through specific methods:
- String xmlResponse = fbCallMethod( new String[] {
- "method=facebook.Users.getInfo",
- "uids=" + fbUserIDs,
- "fields=uid,first_name,last_name", // see link above for more options
Is anyone up to write down a possible way to make Processing inquiry a specific page and download public informations? I know I'm not the only one interested out there!
I'll keep on fooling around with the code, hoping to bring something more than a request to the discussion
Thanks all
1