dsf12123 2017-03-20 09:39
浏览 66
已采纳

在Facebook上分享帖子时 - 不会重定向回网站

I getting this after share https://www.facebook.com/dialog/return/close?#_=_. Found question on stackoverflow but without solution. The share working properly, all works except return to example.com after sharing. here my code how I sharing to the facebook:

<a href="<?php echo 'http://www.facebook.com/sharer.php?u=' . urlencode("http://www.example.com/share/".$fbUser . "/&app_id=MYAPPID&redirect_uri=http://www.example.com/"); ?>">Share Vadim</a>

please advise. How to redirect after seccufull sharing back to example.com ?

  • 写回答

1条回答 默认 最新

  • doule6314 2017-03-20 10:03
    关注

    Sharer.php is no longer working.

    I've made this function so try using it by modifying however you like it : (use it in an onclick for example)

    function fb_share() {
            // facebook share dialog
            FB.ui( {
                method: 'share', // Methord is share - there are different methods
                title: '<?php echo $mTitle;?>',
                name: 'Simple Text',
                href: '<?php echo $mURL; ?>',
                picture: '<?php echo $rooDir . $mImg;?>',
               // caption: '<?php echo $mCaption; ?>',
                description: '<?php echo $mDescription; ?>'
            }, function( response ) {
                // do nothing
            } );
    
    }
    

    Parameters and methods can be found here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请提供一个符合要求的网页链接。
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码