I look at the Request.newRestRequest class but I don't know what to pass to it. There is no example which uses this method. Can you give an example for this?
If your original rest request was https://api.facebook.com/method/method_name?access_token=oauth_access_token&arg0=value0&arg1=value1
Then you would do:
Bundle b = new Bundle();
b.putString("arg0", "value");
b.putString("arg1", "value1");
Request r = Request.newRestRequest(session, "method_name", b, HttpMethod.GET);
But if you're building a new app, you should really start using the Graph API, since Facebook is in the process of deprecating the REST API as stated on this page .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.