redirect user after share facebook -


i want redirect users specific page after share on facebook, have found answer here at:

redirect user after facebook share , publish

here's script

<script type="text/javascript"> fb.init({appid: "your_app_id", status: true, cookie: true});   function share_me() {     fb.ui({       method: 'feed',       app_id: 'your_app_id',       link: 'share_url',       picture: 'pic_url',       name: 'share_name',       caption: 'share_caption',       description: 'share_description'     },     function(response){       if(response && response.post_id) {         self.location.href = 'success_url'       }       else {         self.location.href = 'cancel_url'       }     });   } </script>";   <div onclick="share_me()">share</div> 

but when used script ,there's no redirect @ all, if user click "cancel" please me searching method since 1 week!

try using javascript function redirecting window.location = "your_page"


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -