0

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 ?

L. Vadim
  • 539
  • 3
  • 12

1 Answers1

0

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.

Community
  • 1
  • 1
Antonios Tsimourtos
  • 1,676
  • 1
  • 14
  • 37