java - Issue with Facebook sdk login in android -


enter image description here

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...???

enter image description here

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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -