I have a page tab and want to allow users to share some content in their wall, friends wall or by a private message to a friend.
I'm currently using:
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'page url',
picture: 'image url',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
This works fine but only allows to share in my wall.
So the question is... Is there any dialog or way to allow the three features on the same dialog?
I saw 'send' dialog to send a private message but couldn't find the share on friend wall dialog.
Ideally I wanted to have only a share button and allow the three options after clicking.
Any idea?
Thanks