Show Facebook Share Dialog
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
Solution 1:
The following method will simply post to the wall like this:
Before posting to the wall, it will ask "What is in your mind" before posting. You can enter some text in that and then post. This is working perfectly for me.
publicvoidSharetoWall() {
Bundle params = new Bundle();
params.putString("name", "test title");
params.putString("description", "test desc");
params.putString("link", "some url");
try{
params.putString("picture", valuesProductImages.get(0));
}catch(Exception e){
}
facebook.dialog(getParent(), "feed", params, new DialogListener() {
publicvoidonFacebookError(FacebookError e) {
}
publicvoidonError(DialogError e) {
}
publicvoidonComplete(Bundle values) {
}
publicvoidonCancel() {
}
});
}
Post a Comment for "Show Facebook Share Dialog"