0
I have a script to share content on Facebook is working well just wanted to add a text that the system generates automatically by clicking the share button.
Example:
I wish where it says Diz algo sobre isto…
is a default text.
It is possible to do this ?
Code used
<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>
Thank you I will make a test and then return the result
– César Sousa
Didn’t help? Didn’t solve?
– Lollipop
I had to see but I think my script is just like I’m gonna put up to see
– César Sousa
So with this script I had to test and happens the same script I had
– César Sousa