Posting Attachment Without Open Dialog Using Facebook Android Sdk?
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
Solution 1:
Check this code for Posting in Facebook wall without Dialog :
publicbooleanpostOnWall(String msg) {
Log.d("Tests", "Testing graph API wall post");
try {
String response;
Bundle parameters = newBundle();
parameters.putString("message", msg);
parameters.putString("description", "test test test");
parameters.putString("tags",person_id);
response = ZValues.authenticatedFacebook.request("me/feed", parameters,"POST");
Log.d("Tests", "got response: " + response);
if (response == null || response.equals("") || response.equals("false")) {
Log.v("Error", "Blank response");
returnfalse;
}
} catch(Exception e) {
e.printStackTrace();
}
returntrue;
}
Check this for sending links in Post
Post a Comment for "Posting Attachment Without Open Dialog Using Facebook Android Sdk?"