最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to detect Facebook share success? with Javascript - Stack Overflow

programmeradmin3浏览0评论

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
Add a ment  | 

1 Answer 1

Reset to default 16

It 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.');
     }
   }
 );
发布评论

评论列表(0)

  1. 暂无评论