Hi i like to preform simple facebook api call via http rest but whiteout using facebook java/c++ pre made lib plain http call i already done the authorization part and i have the session id and all that . i just like to see what i need to preform api call over http thanks
views:
47answers:
1
A:
Just use the Facebook Rest API to create your URLs and then send the response via POST
from http://www.exampledepot.com/egs/java.net/Post.html
URL url = new URL("http://hostname:80/cgi");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
JiminyCricket
2010-08-30 16:40:38