How to detect Facebook share success? with Javascript

后端 未结 1 1622
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 08:41

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 my         


        
相关标签:
1条回答
  • 2021-01-02 09:42

    It seems you should use FB.ui

    FB.ui(
       {
         method: 'feed',
         name: 'Facebook Dialogs',
         link: 'http://developers.facebook.com/docs/reference/dialogs/',
         picture: 'http://fbrell.com/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.');
         }
       }
     );
    
    0 讨论(0)
提交回复
热议问题