Hi All,
This is my first post. In my application i want to show facebook
friends name with online status. I am using facebook-java-api-3[1].0.2-
bin.zip jar file. I am using .fql_query() method for this.
I am getting friends list but other details are coming
null ,
like online_status = null.
Please help me out for this.
Here is snapshot of my code
FacebookJsonRestClient client = new
FacebookJsonRestClient(API_KEY,
SECRET);
try{
String token = client.auth_createToken();
String url =
"http://www.facebook.com/login.php?api_key=" + API_KEY
+ "&v=1.0" + "&auth_token=" + token;
Runtime.getRuntime().exec("explorer \"" +url+ "\"");
System.out.println("Use browser to login then press
return");
System.in.read();
String session = client.auth_getSession(token);
JSONArray array = client.friends_get();
for(int i=0; i < array.length(); i++){
JSONArray list = (JSONArray)client.fql_query("select
name,online_presence from user where uid="+array.getInt(i));
System.out.println(list);
}
}catch (FacebookException e) {
e.printStackTrace();
}
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en