java - Issue with Facebook sdk login in android -

imageview connect = (imageview) findviewbyid(r.id.fconnect); connect.setonclicklistener(new view.onclicklistener() { public void onclick(view view) { facebook.authorize(signin.this, new string[] {"offline_access", "email", "read_friendlists","publish_stream" },new dialoglistener() { @override public void oncomplete(bundle values) { string accesstoken = facebook.getaccesstoken(); logindirect = "loading home...."; loginprocesschkuserstatus(); } @override public void onfacebookerror(facebookerror error) { } @override public void onerror(dialogerror e) { } @override public void oncancel() { } }); }else{ progress = true; loginprocesschkuserstatus(); } } }); this facebook api....that use loading in application...this works fine...when click login button...after authorizing comes oncomplete stage... problem comes when installed separtely facebook.apk in phone taken facebook sdk....the view becomes this....also when click login button never excutes above code....what shall do...???

i have faced similar issue when have integrated facebook application. when clicking facebook icon in application native facebook app launched , when uninstalled native facebook app working correctly. figured way out overcome issue following method , have posted on below link on stackoverflow: "an error's occurred" when authenticating facebook's android sdk . problem was, when used debug key, key hash value entered wrong in facebook app register. when corrected key hash according have posted in above link issue solved. please try also.
Comments
Post a Comment