This code is sharing facebook but I want How to detect facebook share success How Can I do that with javascript
u = location.href;
t = document.title;
var myWindow = window.open('.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
return false;
This code is sharing facebook but I want How to detect facebook share success How Can I do that with javascript
u = location.href;
t = document.title;
var myWindow = window.open('http://www.facebook./sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
return false;
Share
Improve this question
edited Feb 5, 2016 at 4:51
Deni Spasovski
4,1293 gold badges37 silver badges54 bronze badges
asked Jun 28, 2011 at 12:13
PsyGnosisPsyGnosis
1,4996 gold badges21 silver badges28 bronze badges
1 Answer
Reset to default 16It seems you should use FB.ui
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook./docs/reference/dialogs/',
picture: 'http://fbrell./f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);