I have been asked to place a button to share company information on facebook.
I have found examples, although most of them only serve to share URLs, however when I try to integrate Facebook's api to share information with certain parameters, I am shown the one that FB is not defined.
then the code
postStory(){
FB.ui({
method: 'feed',
link: 'https://www.empresa.com',
caption: 'Primer Demo',
description:'Esto es una prueba',
picture:'https://www.google.co.jp/logos/doodles/2014/doodle-4-google-2014-japan-winner-5109465267306496.2-hp.png',
}, function(response){
if(response && !response.error_message){
$('#lb_msj').text('link posteado'+response.post_id);
}
else{
$('#lb_msj').text('error ...');
}
});
}
Someone knows how to correct the FB Error message is not defined