javascript - cordova-plugin-facebook on phonegap doesn't open pop -
i using cordova-plugin-facebook4 plugin on phonegapp cordova project , although pop opens when test app on browser nothing when compile , run on mobile phone. missing ??
code being used:
loginwithfacebook = function() { fb.login(function(response) { if (response.authresponse) { fb.api('/me', function(response) { var result_holder = document.getelementbyid('result_friends'); result_holder.innerhtml = response.name; }); } else { alert('user cancelled login or did not authorize.'); } }); return false; };
thanks in advance
Comments
Post a Comment