hi i am currently working on facebook sharing. i already have succeeded in posting particular params to facebook however what i did is to post it without even showing what will the post look like.. i was planning to show a share dialog but i cant seem to find a good guide on how i can implement it..
here's how i post
public void loginAndPostToWall(){
facebook.authorize(this, PERMISSIONS, Facebook.FORCE_DIALOG_AUTH, new LoginDialogListener());
}
public void postToWall(String message){
Bundle parameters = new Bundle();
parameters.putString("message", "message");
parameters.putString("link", "www.example.com");
parameters.putString("name", "my name");
parameters.putString("description", "Try me!");
try {
facebook.request("me");
String response = facebook.request("me/feed", parameters, "POST");
Log.d("Tests", "got response: " + response);
if (response == null || response.equals("") ||
response.equals("false")) {
showToast("Blank response.");
}
else {
showToast("Message Posted to your Wall");
}
finish();
} catch (Exception e) {
showToast("Failed to post to wall!");
Log.v("hey", "exception:" + e);
e.printStackTrace();
finish();
}
}
any hints or guides will do.. thank you