Facebook Javascript SDK: send redirect_uri dialog not working

I am working with the FB Javascript submit dialog. I want iframe / popup to be redirected to another url, so I can note that an FB message has been sent. However, redirect_uri does not seem to work.

 <script> function test(){ FB.init({appId: 'xxxxxxxxxx', xfbml: true, cookie: true}); FB.getLoginStatus(function(response) { //call dialog her FB.ui({ method: 'send', link: 'http://www.google.com', redirect_uri: 'google.com', picture: 'http://fbrell.com/f8.jpg', caption: 'Reference Documentation', description: 'Dialogs provide a simple, consistent interface for applications to interface with users.', redirect_uri: 'http://127.0.0.1:4567/home' }); }); } </script> 
+4
source share

Source: https://habr.com/ru/post/1490721/


All Articles