Thursday, 15 August 2013

android - Facebook not working with Exported/Signed APK File -



android - Facebook not working with Exported/Signed APK File -

i have got facebook work when debugging application next insructions on facebooks developer page on how export , hash key need set in developer portal.

so done, tried using facebook log in exported , signed version of application. unfortunately not able work. never homecoming log in session after logging in through facebook app or web page.

i believe due keys beingness difference between released , signed apk , apk utilize debug.

anyone know how prepare problem?

you right on key hash's beingness different debug.keystore , release signing key. remedy that, follow steps on website here: http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1

it has nice tutorial prepare issue in no time.

the gist of is:

download openssl windows , extract .zip simple location like: c:\openssl contents of zip extracted in folder's root. copy signing key file jre installation's bin folder. example, in case: c:\program files\java\jre7\bin while in bin folder copied signing key, press shift+ right click -> open command window here. run command: keytool -exportcert -alias your_alias -keystore your_signing_key > c:\openssl\bin\debug.txt enter password signing key now, navigate c:\openssl\bin folder , type in next commands:

openssl sha1 -binary debug.txt > debug_sha.txt

and then,

openssl base64 -in debug_sha.txt > debug_base64.txt

done! debug_base64.txt contains key hash. re-create in app console , set.

this sounds lengthy, done in literally 4 - 5 minutes. ;-)

android facebook

No comments:

Post a Comment