I saw this link here:
How to detect Facebook share success? with Javascript
But how do I implement that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you need to have the Javascript SDK loaded in your page
Next you have a function that contains the FB.ui code for opening the share dialog. Within the FB.ui function you can see where the callback starts
function(response) {, where ‘response’ contains some details that help you determine if the user did share the message.In the callback we do an IF statement. If the user did post the message response.post_id exists and contains the id of the successfully posted message so then we can do whatever we want, in this example an alert pops up saying ‘Post was published’