i want share on wordpress a special text on someones personal timeline if he clicks "share".
f.e i have: "oh god, iam pregnant" exact this text i want post on my or his facebook timeline from the coded website. it should see as i or he typed this (no link to website, or anything, blank text) on facebook. its similiar to copy & paste, but share would be easier.
i found this, but this is static, and i work with wordpress and generate multiple random text for the user with posts.
<script type="text/javascript">
$(document).ready(function(){
$('#share_button').click(function(e){
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'This is the content of the "name" field.',
link: 'URL which you would like to share ',
picture: ‘URL of the image which is going to appear as thumbnail image in share dialogbox’,
caption: 'Caption like which appear as title of the dialog box',
description: 'Small description of the post',
message: ''
}
);
}
);
}
);
</script>
a plugin is great too thank you