Facebook breaking changes Feb | Authenticated referrals going away -
i have developed facebook game, , requires authentication when player loads game. working fine. whenever "new" user seek play game, needs click on "allow" button give permissions. dialog working fine facebook going apply changes, known feb 2013 breaking changes.
when "enable" feb 2013 breaking changes through facebook setting of app, application didn't work existing , new users. in fact "allow" permission dialog not loading.
previously using next method authentication, not working when enabled feb 2013 breaking changes via game setting. https://www.facebook.com/dialog/oauth? (link1)
now tried utilize method authentication https://graph.facebook.com/oauth/authorize? (link 2)
but didn't work either. application not redirected app canvas page. in fact got error code 307 twice, , redirects page (link 1) not working.
could please help me happening, , how create authentication work?
authenticated referrals gone, need think of alternative way inquire users permissions. can utilize javascript sdk that. need load sdk first:
(function(d){ var js, id = 'facebook-jssdk', ref = d.getelementsbytagname('script')[0]; if (d.getelementbyid(id)) {return;} js = d.createelement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_us/all.js"; ref.parentnode.insertbefore(js, ref); }(document));
then need init application:
window.fbasyncinit = function() { fb.init({ appid:'your_app_id', status:true, cookie:true, xfbml:true }); };
finally have create login function, handle custom logics:
function login() { fb.login(function(response){ if(response.authresponse) { //custom code goes here } },{scope:'publish_actions'}); }
facebook-login facebook-oauth facebook-authentication
No comments:
Post a Comment