I am working on Facebook Integration in my Android app. I am able to send attachment by using "stream.publish" with opening dialog. Is there a way to post without opening dialog? I am using following method.
Please give me any idea.
postParams.put("seriesname", "Commented during the TV show"+" '"+series+"'");
postParams.put("description", text);
parameters.putString("attachment", "{\"name\":\""+postParams.get("seriesname")+"\","
+"\"href\":\""+"http://www.google.com\","+"\"description\":\""+postParams.get("description")+"\"}");
mFacebook.dialog(FacebookComments.this, "stream.publish", parameters, new SampleDialogListener());
Log.d("FACEBOOK RESPONSE", response);
if (response == null || response.equals("")
|| response.equals("false")) {
Log.v("Error", "Blank response");
}
}
} catch (Exception e) {
Log.e("Facebook", "Error: " + e.getMessage());
}
}