Skip to content

Instantly share code, notes, and snippets.

@mmohiudd
Last active December 12, 2015 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmohiudd/4733215 to your computer and use it in GitHub Desktop.
Save mmohiudd/4733215 to your computer and use it in GitHub Desktop.
send dialog test
<h1>feed</h1>
<p>
Publishing to the stream is easy, as all the fields are optional. Just specify
what you need, and leave the rest out.
</p>
<script>
var publish = {
method: 'send',
to: [120803038, 100002268364410], // comma separated friend ids
message: 'getting educated about Facebook Connect',
name: 'Connect',
new_style_message: true,
caption: 'The Facebook Connect JavaScript SDK',
description: (
'A small JavaScript library that allows you to harness ' +
'the power of Facebook, bringing the user\'s identity, ' +
'social graph and distribution power to your site.'
),
link: 'http://www.fbrell.com/',
picture: 'http://www.fbrell.com/public/f8.jpg',
actions: [
{ name: 'fbrell', link: 'http://www.fbrell.com/' }
],
user_message_prompt: 'Share your thoughts about RELL'
};
FB.ui(publish, Log.info.bind('feed callback'));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment