facebook - Problem with the redirections of apprequest in php -
facebook - Problem with the redirections of apprequest in php -
i using code below send app request someone.
it works fine; displays in facebook notification.
when click notification, redirects facebook app page.
i'm unable create redirect page exists list of facbook app requests.
how create redirect there?
is there need changes in facebook app setting ?
<div id="fb-root"></div> <script> function facebookiframeauthenticator(){ window.fbasyncinit = function() { fb.init({ appid: '123456789', status: true, logging: false, cookie: false, xfbml: true }); fb.canvas.setsize({height: 2000}); fb.canvas.scrollto(0,0); fb.canvas.setautoresize(); }; var e = document.createelement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; document.getelementbyid('fb-root').appendchild(e); } new facebookiframeauthenticator(); function sendinvreq ( frienduid, event ){ fb.ui({ method: 'apprequests', message: 'i\'d bring together professional network on site name .- db', to: frienduid, data: '' } , function(r){ if (r != null && typeof(r) != 'undefined'){ if (r.request_ids){ fb.api('/me/apprequests/?request_ids='+tostring(request_ids)); $.ajax({ url: 'http://exapmple.com', cache:false, type:'post', data:({requestids: r.request_ids.join(','), x_csrf: csrf}), datatype: 'json', complete: function(transport){} }); } } } ); } </script>
in developers page (https://developers.facebook.com/apps/your_app_id/advanced) must alter application advanced settings "upgrade requests 2.0" disable
facebook
Comments
Post a Comment