Android application with Facebook API in eclipse keyhashes issue -


good morning,

i’ve problem facebook api on application i’m making. when i’m building application eclipse smartphone (wiko cink slim) facebook’s connection works , i’m log in. when export project i’m sign new keystore, i’m copy paste “.apk” file generated on phone (at root) , launch installation here, connection doesn’t work. session varable of connection not changing.

i followed tutorial on facebook developer, edited « app » , put 2 keyhashes, on of new keystore i’m generating while exporting project , on of debug.keystore. generate them used correct command windows “keytools…” i’m using right id in string variable “app_id” calling after in manifest.xml

i tried use code , paste in function “oncreate()”

    try { packageinfo info = getpackagemanager().getpackageinfo( "com.facebook.samples.hellofacebook", packagemanager.get_signatures); (signature signature : info.signatures) { messagedigest md = messagedigest.getinstance("sha"); md.update(signature.tobytearray()); system.out.println("keyhash:"+ base64.encodetostring(md.digest(), base64.default)); } } catch (namenotfoundexception e) {  } catch (nosuchalgorithmexception e) {  } 

so code return in console keyhash used application. , keyhash returned 1 return when i’m doing “keytool” command on “debug.keystore” file. weird because i’m making new keystore while export project.

do know problem come ? i’m searching since week , didnt fin d it…

best regards,

jb


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -