Facebook Post To Wall NOT WORKING ON ANDROID DEVICE!

So, is this issue only happening on iOS with the newest daily build?

I ask because this is an Android forum thread and now we’re not sure if some of you are talking about iOS or Android. We’re receiving mixed information that’s confusing the issue here. And as I’ve stated up above, we’ve retested Corona’s facebook APIs on Android with build 776 and it worked for us.

If this is only an iOS issue for you, then please see the following blog post on how to set up your app for Facebook Single Sign-on. That was a new feature that was implemented on iOS that requires you to edit your build.settings file to make it work if the Facebook app is installed on your iOS device.
http://blog.anscamobile.com/2012/01/implementing-facebook-single-sign-on/
[import]uid: 32256 topic_id: 20741 reply_id: 99044[/import]

Sorry, I’ve never read the link site.
My app worked fine when I used stable build.
But It didn’t work when I tried latest build.

I think my mistake causes this issue because of missing this information.

I’m getting Facebook AppId again and try it.
[import]uid: 79009 topic_id: 20741 reply_id: 99051[/import]

Ok… has anyone made any progress. It was working for me but now it doesn’t. I even tried the Corona Test Code and it no longer works either. I’ve read all the blog posts etc and everything makes sense to me… it just doesn’t work. Seems like there is somehow a disconnect between corona and fb. Ansca needs to look at this in more detail… please : ) [import]uid: 129205 topic_id: 20741 reply_id: 99374[/import]

Ok… I did a device reset on the Xcode simulator and now its working again… very tempermental but could be a device or fb issue. [import]uid: 129205 topic_id: 20741 reply_id: 99376[/import]

Well i decided to hold off on facebook integration till i signed my android app with my own keystore. Yesterday i did the keystore signing and everything went fine but when i tried to get the hash for facebook, it gave me a hash and i had the same problem i have been having. So i did a logcat and it seems that i have been getting the wrong hash this whole time from the keytool. So i used the hash that the logcat gave me and it worked fine. So the problem is with the keystore hash. Im not sure if something is happening when the apk is built or what but something is happening to give a different hash when installed.
here is the command line im using to get the hash.
[lua] keytool -exportcert -alias aliasname -keystore “C:\mykeystore.keystore” | “C:\OpenSSL\bin\openssl” sha1 -binary |“C:\OpenSSL\bin\openssl” base64[/lua]
As i said before, the keystore gave me one hash and the logcat error gave me a different hash and when i used the hash that was in the logcat then it works. [import]uid: 126161 topic_id: 20741 reply_id: 101107[/import]

3 Dreams Gaming,

Perhaps you were using the JDK 7 keytool instead of the JDK 6 keytool? I’ve noticed that JDK 7 uses a different encryption by default compared to JDK 6, which was a problem for people when signing their APKs themselves because Android does not support whatever that default JDK 7 encryption is. [import]uid: 32256 topic_id: 20741 reply_id: 101326[/import]

@Joshua,
I tried it with the jdk7, jdk6, and jdk5 keytools and they all gave me the same exact hash, so really I’m at a loss to what the problem could have been. Like i said its solved at this point since i was able to use the logcat error hash but still don’t know what the original problem could have been. [import]uid: 126161 topic_id: 20741 reply_id: 101405[/import]

i think is not a key hash problem, cause if i build with stable build 704 is working perfectly… but lastime i try using daily build 767 it doesn’t work. so i still on build 704 now if i want my facebook working. [import]uid: 102087 topic_id: 20741 reply_id: 102048[/import]

So far, facebook works for us perfectly with the newest build of Corona. So, unless someone can give us a reproducible case, we’re not going to do anything about this. Not trying to be rude. If we can’t reproduce the issue, then we have nothing to fix. [import]uid: 32256 topic_id: 20741 reply_id: 102196[/import]

I don’t know if this is the same issue, but when we tried to implement Facebook SSO on our Android devices, it worked perfectly and we were able to post to our walls UNTIL we installed the Facebook app. Once that got installed, the frame that was loaded in order to post to the wall would pop up for a split second and disappear. The only time we’ve been able to get SSO working was when we uninstalled the FB app from the phone, which defeats the purpose of having SSO at all! We tried this on a variety of devices, with the same result for all. [import]uid: 87279 topic_id: 20741 reply_id: 108870[/import]

I just tested our facebook sample app with daily build #825 with the official Facebook app installed on my Samsung Galaxy S2 (Android 2.3)… and it logged in and posted a message to my wall correctly.

Hmm… perhaps we’re running into a bug with the facebook SDK or facebook app?
Can you please give me the following information?

  • Make and model of your Android device.
  • Android OS version.
  • Version of the official Facebook app on your device.
  • Corona SDK build number that you are using. [import]uid: 32256 topic_id: 20741 reply_id: 109266[/import]

Sure thing -
Android Devices - Samsung Galaxy S on Android 2.3, Galaxy SII/2.3.3, Galaxy SII/2.3.6, HTC Evo 3D/2.3.4
Facebook app version 1.9.3
We were using Corona Build 825 and are getting the same results on all devices. [import]uid: 87279 topic_id: 20741 reply_id: 109268[/import]

I am using build 825 and can post on ios and android with or without the facebook app with no problem [import]uid: 126161 topic_id: 20741 reply_id: 109295[/import]

I was using an older version of the facebook app, so I updated it to 1.9.3 and retested it. Corona’s facebook APIs are still working for me, even with the newest facebook app.

Can you try running “adb logcat” while your Android device is connected to your computer via USB please? See if you can spot any errors/warnings while logging into facebook. [import]uid: 32256 topic_id: 20741 reply_id: 109409[/import]

Sure, here is from the moment I tap the facebook button in our app to the moment it shuts itself down.

[code]D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=3
D/StatusBarPolicy( 375): slotType[0]=NV
D/dalvikvm( 952): GC_CONCURRENT freed 911K, 70% free 3558K/11719K, external 38K
/512K, paused 2ms+3ms
D/ (13592): Mod:Integration Line# -1 Finish Starting Service
D/dalvikvm( 952): GC_CONCURRENT freed 130K, 67% free 3923K/11719K, external 3K/
512K, paused 2ms+2ms
D/StatusBarPolicy( 375): iconIndex=1
V/StatusBarPolicy( 375): cdmaLevel:2;max:6
D/StatusBarPolicy( 375): iconLevel:2
D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=0
D/StatusBarPolicy( 375): slotType[0]=NV
I/ActivityManager( 292): Starting activity: Intent { cmp=com.facebook.katana/.P
roxyAuth (has extras) } from pid 952
W/UsageStats( 292): Failed writing stats to file:/data/system/usagestats/usage-
20120530
D/PhoneWindow( 952): couldn’t save which view has focus because the focused vie
w android.widget.AbsoluteLayout@40616b48 has no id.
D/SensorService( 292): disable: get sensor name = MPL accel
D/SensorService( 292): disable: sensor = 0x3219a0
D/SensorService( 292): SensorDevice::activate–: handle = 0x4, enabled = 0x0
D/SensorService( 292): pid=952, uid=10129
D/AudioTrack( 952): Audio Track already stopped
D/Database( 1379): dbopen(): path = /data/data/com.facebook.katana/databases/web
view.db, flag = 6, file size = 1024
I/Database( 1379): sqlite returned: error code = 0, msg = Recovered 15 frames fr
om WAL file /data/data/com.facebook.katana/databases/webview.db-wal
D/Database( 1379): dbopen(): path = /data/data/com.facebook.katana/databases/web
view.db, mode: wal, disk free size: 636 M, handle: 0x63a448
D/Database( 1379): dbopen(): path = /data/data/com.facebook.katana/databases/web
viewCache.db, flag = 6, file size = 56320
I/Database( 1379): sqlite returned: error code = 0, msg = Recovered 55 frames fr
om WAL file /data/data/com.facebook.katana/databases/webviewCache.db-wal
D/Database( 1379): dbopen(): path = /data/data/com.facebook.katana/databases/web
viewCache.db, mode: wal, disk free size: 636 M, handle: 0x45b6e0
D/skia ( 1379): htcFlashPlugin::htcFlashPlugin
D/qct ( 1379): [WebView.WebView] >> Enable Shutdown = true
D/qct ( 1379): [PreConnectionManager.PreConnectionManager] >> TCP_PRE_CONNEC
T = false
D/qct ( 1379): [RequestQueue.ActivePool.ActivePool] >> Enable Shutdown = tru
e
D/qct ( 1379): [IdleCache.IdleCache] >> IDLE_CACHE_MAX = 40
D/dalvikvm( 1379): GC_CONCURRENT freed 571K, 44% free 4629K/8263K, external 0K/0
K, paused 2ms+3ms
D/RequestQueue( 1379): read proxy from APN settings.
D/RequestQueue( 1379): setProxyConfig mProxyHost=null
D/dalvikvm( 1379): GC_CONCURRENT freed 370K, 42% free 4800K/8263K, external 0K/0
K, paused 5ms+2ms
D/dalvikvm( 1379): GC_CONCURRENT freed 533K, 42% free 4864K/8263K, external 0K/0
K, paused 5ms+3ms
D/dalvikvm( 1379): GC_CONCURRENT freed 548K, 42% free 4856K/8263K, external 0K/0
K, paused 2ms+2ms
D/dalvikvm( 1379): GC_CONCURRENT freed 596K, 41% free 4876K/8263K, external 0K/0
K, paused 5ms+2ms
D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=3
D/StatusBarPolicy( 375): slotType[0]=NV
D/dalvikvm( 1379): GC_CONCURRENT freed 608K, 41% free 4890K/8263K, external 0K/0
K, paused 1ms+4ms
D/ATRecorder( 1379): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.
DexClassLoader@406e9118
D/webkit-timers( 1379): [JWebCoreJavaBridge::resume] >> do resume
D/dalvikvm( 1379): GC_CONCURRENT freed 593K, 41% free 4924K/8263K, external 0K/0
K, paused 1ms+2ms
W/libagl ( 292): handle fade alpha 5
W/libagl ( 292): handle fade alpha 10
W/libagl ( 292): handle fade alpha 33
W/libagl ( 292): handle fade alpha 84
W/libagl ( 292): handle fade alpha 109
W/libagl ( 292): handle fade alpha 147
W/libagl ( 292): handle fade alpha 165
W/libagl ( 292): handle fade alpha 181
W/libagl ( 292): handle fade alpha 195
D/SurfaceFlinger( 292): [DISP] purgatorizeLayer_l 0xa303a0 4
D/SurfaceFlinger( 292): [DISP] purgatorizeLayer_l 0x7f1c60 4
W/libagl ( 292): handle fade alpha 208
I/ActivityManager( 292): Displayed com.facebook.katana/.ProxyAuth: +1s607ms
W/UsageStats( 292): Failed writing stats to file:/data/system/usagestats/usage-
20120530
W/libagl ( 292): handle fade alpha 219
D/SurfaceFlinger( 292): [DISP] remove 0xa303a0 2
D/SurfaceFlinger( 292): [DISP] remove 0x7f1c60 2
W/libagl ( 292): handle fade alpha 228
W/libagl ( 292): handle fade alpha 236
W/libagl ( 292): handle fade alpha 243
W/libagl ( 292): handle fade alpha 248
W/libagl ( 292): handle fade alpha 252
W/libagl ( 292): handle fade alpha 254
D/dalvikvm( 1379): GC_CONCURRENT freed 538K, 40% free 4965K/8263K, external 0K/0
K, paused 3ms+4ms
D/dalvikvm( 1379): GC_CONCURRENT freed 635K, 40% free 4978K/8263K, external 0K/0
K, paused 6ms+2ms
D/dalvikvm( 1379): GC_CONCURRENT freed 411K, 37% free 5225K/8263K, external 0K/0
K, paused 6ms+3ms
D/AudioHardwareMSM8660( 146): enableDevice(2 0)
D/dalvikvm( 292): GC_EXPLICIT freed 288K, 31% free 9635K/13895K, external 2539K
/3164K, paused 72ms
I/AudioHardwareMSM8660( 146): AudioHardware pcm playback is going to standby.
D/StreamProcess( 146): ALC parameter: ALC_THRESHOLD:46152
D/StreamProcess( 146): SAMPLE_THRESHOLD:7336
D/StreamProcess( 146): PAGE_THRESHOLD:256
D/StreamProcess( 146): MAX_ACL_ATT:26
D/StreamProcess( 146): STRESS_THRESHOLD:40
D/StreamProcess( 146): mBURSTWEIGHT_SHIFT:3
D/StreamProcess( 146): NORMAL_THRESHOLD:24
D/StreamProcess( 146): NORMAL_BURST_THRESHOLD:8
D/StreamProcess( 146): STRESS_BURST_THRESHOLD:8
D/StreamProcess( 146): OutputStreamProcess::ResetAOLC()
D/dalvikvm( 1379): GC_CONCURRENT freed 753K, 37% free 5207K/8263K, external 0K/0
K, paused 5ms+3ms
W/UsageStats( 292): Failed writing stats to file:/data/system/usagestats/usage-
20120530
D/Facebook-authorize( 952): Login failed: invalid_key:Android key mismatch. You
r key “JGn9F2vDQ/w6hexLxdefCUpxYIA” does not match the allowed keys specified in
your application settings. Check your application settings at http://www.facebo
ok.com/developers
D/SensorService( 292): enable: get sensor name = MPL accel
D/Sensors ( 292): handle : 4 en: 1, v09.1-Store Calibration, Landscape support
D/Sensors ( 292): MPLSensor::enable–2
D/SensorService( 292): SensorDevice::activate–: handle = 0x4, enabled = 0x1
D/SensorService( 292): enable: sensor->activate return value = 0x0
D/SensorService( 292): enable: mActiveConnections.indexOf(connection) = 0xfffff
ffe
D/SensorService( 292): enable: call mActiveConnections.add(connection)
D/SensorService( 292): pid=952, uid=10129
D/InputManagerService( 292): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy@40bbc218
D/dalvikvm( 952): GC_FOR_MALLOC freed 126K, 67% free 3928K/11719K, external 32K
/512K, paused 25ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.936MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed <1K, 58% free 4952K/11719K, external 28K/
512K, paused 41ms
D/dalvikvm( 952): GC_CONCURRENT freed 1K, 58% free 4953K/11719K, external 21K/5
12K, paused 1ms+2ms
W/libagl ( 292): handle fade alpha 250
W/libagl ( 292): handle fade alpha 245
D/SurfaceFlinger( 292): [DISP] purgatorizeLayer_l 0x5ce490 5
W/libagl ( 292): handle fade alpha 239
D/SurfaceFlinger( 292): [DISP] purgatorizeLayer_l 0x7f21d0 4
D/dalvikvm( 952): GC_FOR_MALLOC freed 1399K, 70% free 3554K/11719K, external 0K
/512K, paused 19ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.504MB for 1011856-byte alloca
tion
D/SurfaceFlinger( 292): [DISP] remove 0x5ce490 2
W/libagl ( 292): handle fade alpha 231
D/SurfaceFlinger( 292): [DISP] remove 0x7f21d0 2
W/libagl ( 292): handle fade alpha 229
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 62% free 4543K/11719K, external 0K/51
2K, paused 17ms
W/libagl ( 292): handle fade alpha 211
W/libagl ( 292): handle fade alpha 199
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 62% free 4543K/11719K, external 0K/5
12K, paused 1ms+2ms
W/libagl ( 292): handle fade alpha 186
W/libagl ( 292): handle fade alpha 170
D/dalvikvm( 952): GC_FOR_MALLOC freed 990K, 70% free 3553K/11719K, external 0K/
512K, paused 17ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
W/libagl ( 292): handle fade alpha 154
W/libagl ( 292): handle fade alpha 136
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 61% free 4577K/11719K, external 0K/51
2K, paused 19ms
W/libagl ( 292): handle fade alpha 117
W/libagl ( 292): handle fade alpha 93
W/libagl ( 292): handle fade alpha 71
D/dalvikvm( 952): GC_CONCURRENT freed 128K, 61% free 4577K/11719K, external 0K/
512K, paused 1ms+2ms
W/libagl ( 292): handle fade alpha 45
W/libagl ( 292): handle fade alpha 18
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 17ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 61% free 4577K/11719K, external 0K/51
2K, paused 16ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 61% free 4577K/11719K, external 0K/5
12K, paused 2ms+3ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 15ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 7.538MB for 2097168-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 53% free 5601K/11719K, external 0K/51
2K, paused 21ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 53% free 5601K/11719K, external 0K/5
12K, paused 2ms+1ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 2048K, 70% free 3553K/11719K, external 0K
/512K, paused 15ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 61% free 4577K/11719K, external 0K/51
2K, paused 15ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 61% free 4577K/11719K, external 0K/5
12K, paused 4ms+1ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 15ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 7.538MB for 2097168-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 53% free 5601K/11719K, external 0K/51
2K, paused 15ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 53% free 5601K/11719K, external 0K/5
12K, paused 2ms+2ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 2048K, 70% free 3553K/11719K, external 0K
/512K, paused 15ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed <1K, 61% free 4577K/11719K, external 0K/5
12K, paused 40ms
D/dalvikvm( 952): GC_CONCURRENT freed 0K, 61% free 4577K/11719K, external 0K/51
2K, paused 4ms+1ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 16ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 7.538MB for 2097168-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed <1K, 53% free 5601K/11719K, external 0K/5
12K, paused 37ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 53% free 5601K/11719K, external 0K/5
12K, paused 1ms+1ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 2581K, 70% free 3553K/11719K, external 0K
/512K, paused 36ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 61% free 4577K/11719K, external 0K/5
12K, paused 2ms+1ms
D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=0
D/StatusBarPolicy( 375): slotType[0]=NV
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 16ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_CONCURRENT freed 0K, 61% free 4577K/11719K, external 0K/51
2K, paused 2ms+2ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 1281K, 70% free 3553K/11719K, external 0K
/512K, paused 16ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 6.538MB for 1048592-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed <1K, 61% free 4577K/11719K, external 0K/5
12K, paused 15ms
D/dalvikvm( 952): GC_CONCURRENT freed 512K, 61% free 4577K/11719K, external 0K/
512K, paused 4ms+2ms
D/dalvikvm( 952): GC_FOR_MALLOC freed 1024K, 70% free 3553K/11719K, external 0K
/512K, paused 15ms
I/dalvikvm-heap( 952): Grow heap (frag case) to 7.538MB for 2097168-byte alloca
tion
D/dalvikvm( 952): GC_FOR_MALLOC freed 0K, 53% free 5601K/11719K, external 0K/51
2K, paused 15ms
D/dalvikvm( 952): GC_CONCURRENT freed <1K, 53% free 5601K/11719K, external 0K/5
12K, paused 2ms+2ms
D/AudioSystem( 146): linearToSpecifyHtcVolume(volume:33, streamType:3, audio_de
vices:2)
D/AudioHardwareMSM8660( 146): curr_out_device = 2
D/AudioHardwareMSM8660( 146): read batter temp = 250
D/AudioHardwareMSM8660( 146): enableDevice(2 1)
D/AudioHardwareMSM8660( 146): Enable ALT for speaker
D/AudioHardwareMSM8660( 146): read batter temp = 250
D/AudioHardwareMSM8660( 146): ACDB -> send_audio_cal, acdb_id = 15, path = 0
D/AudioHardwareMSM8660( 146): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D/AudioHardwareMSM8660( 146): ACDB -> AUDIO_SET_AUDPROC_CAL
D/AudioHardwareMSM8660( 146): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_VOLTBL_STEP
_COPP
D/AudioHardwareMSM8660( 146): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
W/AudioFlinger( 146): write blocked for 101 msecs, 18 delayed writes, thread 0x
13d08
D/dalvikvm( 952): GC_CONCURRENT freed 2834K, 70% free 3630K/11719K, external 51
2K/512K, paused 4ms+2ms
D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=3
D/StatusBarPolicy( 375): slotType[0]=NV
D/dalvikvm( 952): GC_CONCURRENT freed 339K, 68% free 3802K/11719K, external 0K/
512K, paused 4ms+2ms
I/BATT_ALG( 163): charging time: 0
I/BATT_ALG( 163): vol=3626;curr=-451;dis_curr=0;temp=251;id=1;level=22;chg_src=
1;chg_en=1;temp_range=0;timer=60;safety_count=0
D/BatteryService( 292): UEvent updateBatteryStats -----------------------------

D/PackageManager( 292): Failed to get PackageInfo!, pkg:com.htc.demoflorebooter
, flags:1
D/BatteryService( 292): SendIntentforPowersaver
I/BatteryService( 292): >>SendIntentforPowersaver
I/BatteryService( 292): >> handlePowerMode
I/BatteryService( 292): PowerSaver Auto: neverEnablePowerSaver=false, plugged=t
rue, powerSaverEnable=true
I/BatteryService( 292): currentStatus=8000, currentLevel=22, enableLevel=25, en
ablePowerSaver=false, showLowLevelStatus=false, statusChangeTo=-1
I/BatteryService( 292): << handlePowerMode
I/BatteryService( 292): <D/HtcCdmaPhoneApp( 404): level 22 scale 100
D/BatteryService( 292): UEvent updateBatteryStats -----------------------------

D/BatteryService( 292): UEvent updateBatteryStats -----------------------------

D/StatusBarPolicy( 375): hasService()=true ,mDataState=2 ,mPhone.htcModemLinkOn
()=false ,mDataActivity=0
D/StatusBarPolicy( 375): slotType[0]=NV
[/code] [import]uid: 87279 topic_id: 20741 reply_id: 109414[/import]

The problem is on line 115-118

D/Facebook-authorize( 952): Login failed: invalid\_key:Android key mismatch. You  
r key "JGn9F2vDQ/w6hexLxdefCUpxYIA" does not match the allowed keys specified in  
 your application settings. Check your application settings at http://www.facebo  
ok.com/developers  

This tells you that the hash you have on the facebook site is not matching the your app. So if you have not created a hash for your facebook then you need to. Otherwise there is a problem with the hash key that you created.

I had this same problem, i built the hash 10 times with the same result and still had a hash mismatch so i used the hash that logcat gave it and put that on facebook and it works fine now

So in your case if you take JGn9F2vDQ/w6hexLxdefCUpxYIA and submit it to facebook as you hash it should work.

[import]uid: 126161 topic_id: 20741 reply_id: 109420[/import]

3 Dreams is right. Just copy and paste that hash key mentioned in the log (3 Dreams highlighted it in his post) to your app developer set up web page on facebook and that will solve this problem.

I’ll talk to Tom about mentioning this in our next FAQ blog article. [import]uid: 32256 topic_id: 20741 reply_id: 109422[/import]

Thanks, that was definitely the problem. I don’t know why the hash I generated wasn’t working, but using the one from logcat did the trick. [import]uid: 87279 topic_id: 20741 reply_id: 109423[/import]

Great! I’m glad it is finally working for you.

I suspect you have JDK 7 installed on your system and the command line is defaulting to JDK 7’s keytool instead of JDK 6’s. The keytool for JDK 7 uses a different encryption algorithm by default compared to JDK 6. It’s a common “gotcha” when it comes to APK signing. [import]uid: 32256 topic_id: 20741 reply_id: 109424[/import]

That Android key hash “JGn9F2vDQ/w6hexLxdefCUpxYIA” is for the “androiddebugkey” so I guess everyone should use that for development? Took a while to realise how to even generate that hash! [import]uid: 140429 topic_id: 20741 reply_id: 109694[/import]