FB.Connect.showFeedDialog

Description

This call lets a user publish a Feed story to his or her Wall or to one of his or her friends' Walls.

This method behaves similarly to Feed.publishUserAction, except that you do not need a session to call it. Instead, the user is shown an iframe or popup and given the opportunity to approve or deny the submission.

Deprecated

This method is being deprecated on December 20 2009.

FB.Connect.streamPublish is the recommended replacement. It is a much more robust and simpler version of this method.

Signature

showFeedDialog(String template_bundle_id,  Object template_data,  Array target_id,  String body_general,  FB.FeedStorySize story_size,  FB.RequireConnect require_connect,  Function callback,  String user_message_prompt,  Object user_message)

Parameters

template_bundle_idString

The id of the feed template you want to use

template_dataObject

Data associated with template (for short stories)

target_idArray

If you are publishing to a friend's feed, their user id

body_generalString

Associated text for short stories

story_sizeFB.FeedStorySize

Either FeedStorySize.ShortStory or 0

require_connectFB.RequireConnect

Either RequireConnect.doNotRequire, RequireConnect.require, or RequireConnect.promptConnect- The action to occur if the user has not authorized this app.

callbackFunction

Callback to be executed after function is completed

callback should have the following signature: function(resultexceptiondata).

user_message_promptString

prompt for the short story feed dialog's user message

user_messageObject

in/out param for user's message: object with one property 'value'. Or just a string

Returns

Boolean