Fb:attachment-preview

From Facebook Developer Wiki

(Redirected from Fb:message-preview)
Jump to: navigation, search

Description

Important! As we announced on the Developer Blog, after the new Inbox launches to all users (a few weeks after August 11, 2009), we will deprecate this method for Publisher attachments. You should start using stream attachments for Publisher integrations.




Renders a link in a message attachment that, when clicked, replaces that attachment with newly fetched content. The URL from which the content is fetched is a hidden input in the current content, and all other inputs in the content are posted.

You specify the following in your application's settings in the Facebook Developer application:

  • Attachment Action: The action in a dropdown or button for creating a message attachment. The action cannot be longer than 20 characters.
  • Callback URL: The URL from which to fetch attachment content. The callback URL cannot be longer than 100 characters).

Or, you can set them with Admin.setAppProperties, passing the message_url and message_action application properties.

See Also

reference