I have a script to share content on Facebook is working fine just wanted to add text that the system generates automatically when you click the share button.
Example:
IwantedthatwhereitsaysDizalgosobreisto…
wasanalreadypredefinedtext.Isitpossibletodothis?
Codeused
<script>FB.init({appId:"", status: true, cookie: true, xfbml:true });
function postToFeed(description) {
var obj = {
method: "feed",
message : "Vê este comentário sobre '.$row_estabelecimento->titulo.' no @SabeOnde",
link : "'.$row_estabelecimento->link_site.'",
picture : "http://sabeonde.pt/gtm/anexos/capa/'.$row_estabelecimento_anexo->id_anexo.'.'.$row_estabelecimento_anexo->tipo.'",
name : "'.$row_estabelecimento->titulo.' | SabeOnde",
description : "'.$row_posts->opiniao.'",
display: "popup"
};
function callback(response) {
document.getElementById("msg").innerHTML = "Post ID: " + response["post_id"];
}
FB.ui(obj, callback);
}
</script>