, , . , .
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://venu.com/',
picture: 'http://venu.com/f8.jpg',
caption: 'Venu site',
description: 'asdasdasdasd.',
message: 'asdasdasd!',
actions: [
{ name: 'share', link: 'link here' }
]
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
/. , - , . URl.
, :)
[EDIT]
, "me/links" "me/feed". , , Facebook , . , . (https://developers.facebook.com/bugs/194522957295380)
$attachment = array(
'access_token'=>TOKEN_HERE,
'message'=>'message_here',
'link' => 'http://www.example.com/',
);
$result = $facebook->api(
'me/links',
'post',
$attachment
);
, . Facebook .
<head>
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="name for ENTIRE SITE"/>
<meta property="og:title" content="name of PAGE"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="<URL HERE>"/>
<meta property="og:description" content="my description" />
<title>Untitled</title>
</head>