facebook-authorization

posting requires a permission login dialog to appear twice

雨燕双飞 提交于 2019-12-10 15:16:21
问题 I am developing a mobile camera app that allows posting a photo on facebook. The camera app is a stand-alone and does not require facebook login when it starts. However I want to allow posting a picture to facebook. It follows that the first time a user will try uploading an image it will have to go through the permission login dialog twice. I cant find a way to ask the user for access his basic information + posting of an image on his wall with one login dialog. This seems "by design" if you

Explain many inner-most loops in FB.login to get the access token?

≯℡__Kan透↙ 提交于 2019-12-08 09:31:44
问题 My friend called this like lambda-calculus, even though I know some lambas -- I am still confused how the authorization really works to get the access token. So please explain this code, hopefully line-by-line. Source of the example is here. FB.login(function(response) { if (response.authResponse) { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Good to see you, ' + response.name + '.'); }); } else { console.log('User cancelled login or