android Facebook sdk login issue in 3.7 -


i developed app uses facebook login login. using default login button provided in facebook sdk 3.7 login functionality. issue is, devices unable login app. issue occurring on few devices, more 70% devices able login.

the error is:

session state:closed_login_failed, token:{accesstoken token:access_token_removed permissions:[]} 

seems hash generation issue.

just use solution -

packageinfo info = getpackagemanager().getpackageinfo("<your_package_name>",  packagemanager.get_signatures);  (signature signature : info.signatures)     {         messagedigest md = messagedigest.getinstance("sha");         md.update(signature.tobytearray());         log.d("keyhash:", base64.encodetostring(md.digest(), base64.default));     } 

this uses standard hash generation provided facebook.

the same mentioned here.

update:

although problem related way generating hash , method have placed facebook login code, think there tutorials out there can confirm outcome. 1 such mentioned below.

if want check step step way of login in facebook read following tutorial using-facebook-sdk-android-development-part-1.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -