function publishStream(){
streamPublish("Stream Publish", 'Thinkdiff.net is AWESOME. I just learned how to develop Iframe+Jquery+Ajax base facebook application development. ', 'Checkout the Tutorial', 'http://wp.me/pr3EW-sv', "Demo Facebook Application Tutorial");
}
function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
/* FB.ui(
{
method: 'feed',
message: '',
attachment: {
name: name,
caption: '',
description: (description),
href: hrefLink,
media: [
{
"type": "image",
"src": "http://socialdeal.pursuitvision.com/img/original/Deal/100.2089ef49d32f4f8caa9726329d26ba7f.jpg",
"href": "http://socialdeal.pursuitvision.com/vancouver"
},
{
"type": "image",
"src": "http://socialdeal.pursuitvision.com/img/original/Deal/100.2089ef49d32f4f8caa9726329d26ba7f.jpg",
"href": "http://socialdeal.pursuitvision.com/vancouver"
}]
},
action_links: [
{ text: hrefTitle, href: hrefLink }
]
},
function(response) {
}); */
}
No comments:
Post a Comment