facebook problems

Hi Rob

this is driving me crazy, here are the steps i have taken 

1 generate my one keystore:

keytool -v -genkey -v -keystore helicopter-bob.keystore -alias helicopter_bob_key -keyalg RSA -validity 10000

2 generate keyhash:

keytool -exportcert -alias helicopten_bob_key -keystore helicopter-bob-key.keystore | openssl sha1 -binary | openssl base64

3 save key in facebook:

nQx/giARys24Lmu0Gv8ZhwDwCy8=

but its still not working 

kevin

Now are you building your app with the “helicopter-bob-key” keystore?  Making the keystore and key hash is one step.  Adding it to facebook is another, but you then have to build your app against it and not the debug keystore.

Rob

yes so when i building the app with the “helicopter-bob-key” keystore it ask for the password of the keystore and it builds it

Can you post a new version of your adb logcat?

D/STATUSBAR-NetworkController( 1037): onSignalStrengthsChanged signalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 22 -95 -9 94 -1 2147483647 gsm|lte 0x2 level=2

W/fb4a(:<default>):BlueServiceQueue(23601): Exception during service

W/fb4a(:<default>):BlueServiceQueue(23601): com.facebook.http.protocol.ApiException: Key hash 1_2o50yTbt8W_kT0wCHtflQ2Jwc does not match any stored key hashes.

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.ApiResponseChecker.b(ApiResponseChecker.java:83)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.ApiResponseChecker.a(ApiResponseChecker.java:162)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.ApiResponse.g(ApiResponse.java:239)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:272)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:29)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.ApiResponseHandler.a(ApiResponseHandler.java:56)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.ApiResponseHandler.handleResponse(ApiResponseHandler.java:29)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:280)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:141)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.common.FbHttpRequestProcessor.b(FbHttpRequestProcessor.java:103)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:196)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:374)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:151)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.http.protocol.AbstractSingleMethodRunner.a(AbstractSingleMethodRunner.java:18)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:367)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:260)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.fbservice.service.BlueServiceQueue.e(BlueServiceQueue.java:299)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:53)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.fbservice.service.BlueServiceQueue$3.run(BlueServiceQueue.java:230)

W/fb4a(:<default>):BlueServiceQueue(23601):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)

W/fb4a(:<default>):BlueServiceQueue(23601):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)

W/fb4a(:<default>):BlueServiceQueue(23601):     at com.facebook.common.executors.ListenableScheduledFutureImpl.run(ListenableScheduledFutureImpl.java:59)

W/fb4a(:<default>):BlueServiceQueue(23601):     at android.os.Handler.handleCallback(Handler.java:730)

W/fb4a(:<default>):BlueServiceQueue(23601):     at android.os.Handler.dispatchMessage(Handler.java:92)

W/fb4a(:<default>):BlueServiceQueue(23601):     at android.os.Looper.loop(Looper.java:137)

W/fb4a(:<default>):BlueServiceQueue(23601):     at android.os.HandlerThread.run(HandlerThread.java:61)

W/fb4a(:<default>):GDPDialog(23601): Failed to send

W/fb4a(:<default>):GDPDialog(23601): com.facebook.fbservice.service.ServiceException: API_ERROR: API_ERROR

W/fb4a(:<default>):GDPDialog(23601):     at com.facebook.fbservice.ops.BlueServiceOperation.c(BlueServiceOperation.java:640)

W/fb4a(:<default>):GDPDialog(23601):     at com.facebook.fbservice.ops.BlueServiceOperation.c(BlueServiceOperation.java:48)

W/fb4a(:<default>):GDPDialog(23601):     at com.facebook.fbservice.ops.BlueServiceOperation$2.run(BlueServiceOperation.java:605)

W/fb4a(:<default>):GDPDialog(23601):     at android.os.Handler.handleCallback(Handler.java:730)

W/fb4a(:<default>):GDPDialog(23601):     at android.os.Handler.dispatchMessage(Handler.java:92)

W/fb4a(:<default>):GDPDialog(23601):     at android.os.Looper.loop(Looper.java:137)

W/fb4a(:<default>):GDPDialog(23601):     at android.app.ActivityThread.main(ActivityThread.java:5419)

W/fb4a(:<default>):GDPDialog(23601):     at java.lang.reflect.Method.invokeNative(Native Method)

W/fb4a(:<default>):GDPDialog(23601):     at java.lang.reflect.Method.invoke(Method.java:525)

W/fb4a(:<default>):GDPDialog(23601):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)

W/fb4a(:<default>):GDPDialog(23601):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

W/fb4a(:<default>):GDPDialog(23601):     at dalvik.system.NativeStart.main(Native Method)

I/GATE    ( 5625): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>

D/webviewglue( 5625): nativeDestroy view: 0x71cad2c8

D/dalvikvm(  677): GC_FOR_ALLOC freed 4546K, 20% free 100124K/123916K, paused 217ms, total 218ms

I/Ads     ( 5625): onReceiveAd()

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.facebook.katana/pause]

D/STATUSBAR-StatusBarManagerService(  677): manageDisableList what=0x0 pkg=WindowManager.LayoutParams

D/PointerIcon(  677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon(  677): setHoveringSpenCustomIcon IconType is same.1

I/power   (  677): *** acquire_dvfs_lock : lockType : 1  freq : 1350000 

D/SSRMv2:CustomFrequencyManagerService(  677): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1350000  uid : 1000  pid : 677  pkgName : ACTIVITY_RESUME_BOOSTER@6

W/ActivityManager(  677): mDVFSHelper.acquire()

D/WindowManager(  677): computeScreenConfigurationLocked() set config.orientation=1 dw=1080 dh=1920 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.resumeTopActivityLocked:2761 

D/PowerManagerService(  677): setKeyboardVisibility: false

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

E/EnterpriseContainerManager(  677): ContainerPolicy Service is not yet ready!!!

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.facebook.katana/resume]

D/EnterpriseDeviceManager(  677): ContainerId: 0

W/LicenseLogService(  677): log() is called by non admin

E/ViewRootImpl(23601): sendUserActionEvent() mView == null

I/SurfaceFlinger(  205): id=10067 Removed Gacebook (6/7)

I/SurfaceFlinger(  205): id=10067 Removed Gacebook (-2/7)

D/STATUSBAR-PhoneStatusBar( 1037): animateCollapsePanels

I/WindowManager(  677): Screenshot Window{458bd1f8 u0 com.facebook.katana/com.facebook.katana.platform.PlatformActivity} was all black! mSurfaceLayer=21085 minLayer=21085 maxLayer=21085

E/MP-Decision( 1851): num online cores: 2 reqd : 3 available : 4 rq_depth:2.900000 hotplug_avg_load_dw: 101

E/MP-Decision( 1851): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140 total_time_up:0.000000

E/MP-Decision( 1851): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90 total_time_up:99.000000

D/dalvikvm(  677): GC_FOR_ALLOC freed 3426K, 19% free 100931K/123916K, paused 190ms, total 191ms

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.facebook.katana/pause]

D/SSRMv2:AirViewOnOff(  677): DeviceInfo:: 0000000000

D/SSRMv2:AirViewOnOff(  677): SettingsAirViewInfo:: 000000000

D/WindowManager(  677): computeScreenConfigurationLocked() set config.orientation=1 dw=1080 dh=1920 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.resumeTopActivityLocked:2761 

D/PowerManagerService(  677): setKeyboardVisibility: false

D/STATUSBAR-StatusBarManagerService(  677): manageDisableList what=0x0 pkg=WindowManager.LayoutParams

D/PointerIcon(  677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon(  677): setHoveringSpenCustomIcon IconType is same.1

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

I/SurfaceFlinger(  205): id=10068 Removed QlatformWra (4/6)

I/SurfaceFlinger(  205): id=10068 Removed QlatformWra (-2/6)

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.seaburngames.games.helicopter_bob/resume]

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.seaburngames.games.helicopter_bob/pause]

I/SurfaceFlinger(  205): id=10066 Removed QlatformAct (3/5)

I/SurfaceFlinger(  205): id=10066 Removed QlatformAct (-2/5)

E/EnterpriseContainerManager(  677): ContainerPolicy Service is not yet ready!!!

D/EnterpriseDeviceManager(  677): ContainerId: 0

W/LicenseLogService(  677): log() is called by non admin

D/PointerIcon(  677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon(  677): setHoveringSpenCustomIcon IconType is same.1

D/SSRMv2:AirViewOnOff(  677): DeviceInfo:: 0000000000

D/SSRMv2:AirViewOnOff(  677): SettingsAirViewInfo:: 000000000

W/InputMethodManagerService(  677): Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@454e0720 (uid=10071 pid=5625)

V/InputMethodManagerService(  677): Focus gain on non-focused client mCurClient info is ClientState{458e6698 uid 10214 pid 23601}

V/WindowOrientationListener(  677): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false

V/WindowOrientationListener(  677): mSContextAutoRotationListener.getProposedRotation, Rotation: -1

V/WindowOrientationListener(  677): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false

V/WindowOrientationListener(  677): mSContextAutoRotationListener.getProposedRotation, Rotation: -1

V/WindowManager(  677): rotationForOrientationLw(orient=1, last=0); user=0  sensorRotation=-1 isCoverOpen=true mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false

V/WindowManager(  677): Application requested orientation 1, got rotation 0 which has compatible metrics

D/WindowManager(  677): computeScreenConfigurationLocked() set config.orientation=1 dw=1080 dh=1920 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.resumeTopActivityLocked:2761 

D/PowerManagerService(  677): setKeyboardVisibility: false

V/SmartFaceService - 3rd party pause(  677): onReceive [android.intent.action.ACTIVITY_STATE/com.seaburngames.games.helicopter_bob/resume]

D/SensorService(  677): info.rates.add, set DEFAULT_EVENTS_PERIOD

E/Sensors (  677): Acc old sensor_state 0, new sensor_state : 1 en : 1

D/SensorService(  677): SensorDevice::activating sensor handle=0 ns=200000000 

I/SensorService(  677): info.selectDelay() ns=200000000  

D/SensorService(  677): SensorDevice::setDelay, Return(true 1, false 0) =  1

D/SensorManager( 5625): registerListener :: create queue :: handler = 0, name = K330 3-axis Accelerometer, delay = 200000, 

I/SurfaceFlinger(  205): id=10069 createSurf (1080x1920),1 flag=4, TurfaceView

I/SurfaceFlinger(  205): id=10070 createSurf (1080x1920),1 flag=4, DoronaActiv

D/PointerIcon(  677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0

D/PointerIcon(  677): setHoveringSpenCustomIcon IconType is same.1

V/AudioPolicyManagerBase(  208): startOutput() output 2, stream 3, session 7503

V/AudioPolicyManagerBase(  208): changeRefCount() stream 3, count 1

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

V/AudioPolicyManagerBase(  208): getNewDevice() selected device 2

V/AudioPolicyManagerBase(  208): setOutputDevice() output 2 device 0002 force 0 delayMs 0 

V/AudioPolicyManagerBase(  208): setOutputDevice() prevDevice 0002

V/AudioPolicyManagerBase(  208): setOutputDevice() setting same device 0002 or null device for output 2

V/AudioPolicyManagerBase(  208): checkOutputForStrategy(0002,0002,3)

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

V/AudioPolicyManagerBase(  208): stopOutput() output 2, stream 3, session 7503

V/AudioPolicyManagerBase(  208): changeRefCount() stream 3, count 0

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

V/AudioPolicyManagerBase(  208): getNewDevice() selected device 0

V/AudioPolicyManagerBase(  208): setOutputDevice() output 2 device 0000 force 0 delayMs 192 

V/AudioPolicyManagerBase(  208): setOutputDevice() prevDevice 0002

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

V/AudioPolicyManagerBase(  208): setOutputDevice() setting same device 0000 or null device for output 2

V/AudioPolicyManagerBase(  208): checkOutputForStrategy(0002,0002,3)

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

V/AudioPolicyManagerBase(  208): startOutput() output 2, stream 3, session 7503

V/AudioPolicyManagerBase(  208): changeRefCount() stream 3, count 1

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

W/AudioPolicyManagerBase(  208): stream type [13], return media strategy

W/AudioPolicyManagerBase(  208): stream type [14], return media strategy

V/AudioPolicyManagerBase(  208): getNewDevice() selected device 2

V/AudioPolicyManagerBase(  208): setOutputDevice() output 2 device 0002 force 0 delayMs 0 

V/AudioPolicyManagerBase(  208): setOutputDevice() prevDevice 0002

V/AudioPolicyManagerBase(  208): setOutputDevice() setting same device 0002 or null device for output 2

V/AudioPolicyManagerBase(  208): checkOutputForStrategy(0002,0002,3)

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

V/AudioPolicyManagerBase(  208): getOutputsForDevice device 0002 -> 0002

W/libc    ( 5625): pthread_create sched_setscheduler call failed: Operation not permitted

D/STATUSBAR-StatusBarManagerService(  677): manageDisableList what=0x0 pkg=WindowManager.LayoutParams

D/PowerManagerService(  677): [api] acquire WakeLock flags=0x2000000a tag=WindowManager uid=1000 pid=677

I/OpenAL_SLES( 5625): playback_function started

D/WebView ( 5625): onSizeChanged - w:1080 h:150

I/Corona  ( 5625): Message received from the ads library:     The ad loaded successfully

I/AudioResampler(  208): new MM resampler(44100 -> 48000, 2)

E/EnterpriseContainerManager(  677): ContainerPolicy Service is not yet ready!!!

D/EnterpriseDeviceManager(  677): ContainerId: 0

W/LicenseLogService(  677): log() is called by non admin

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

D/SSRMv2:AirViewOnOff(  677): DeviceInfo:: 0000000000

D/SSRMv2:AirViewOnOff(  677): SettingsAirViewInfo:: 000000000

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

V/WindowManager(  677): Window{435413d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false

I/SurfaceFlinger(  205): id=10065 Removed MoginActivi (5/6)

I/SurfaceFlinger(  205): id=10065 Removed MoginActivi (-2/6)

E/MP-Decision( 1851): num online cores: 3 reqd : 4 available : 4 rq_depth:6.300000 hotplug_avg_load_dw: 219

E/MP-Decision( 1851): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140 total_time_up:0.000000

E/MP-Decision( 1851): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90 total_time_up:0.000000

E/MP-Decision( 1851): UP cpu:3 core_idx:3 Nw:3.500000 Tw:90 total_time_up:98.000000

D/STATUSBAR-NetworkController( 1037): onSignalStrengthsChanged signalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 21 -95 -9 10 -1 2147483647 gsm|lte 0x2 level=2

D/dalvikvm(25737): GC_CONCURRENT freed 1948K, 39% free 16024K/25908K, paused 3ms+6ms, total 40ms

I/power   (  677): *** release_dvfs_lock : lockType : 1 

I/power   (  677): *** acquire_dvfs_lock : lockType : 1  freq : 1350000 

W/fb4a(:<default>):BlueServiceQueue(23601): Exception during service

W/fb4a(:<default>):BlueServiceQueue(23601):
com.facebook.http.protocol.ApiException: Key hash
1_2o50yTbt8W_kT0wCHtflQ2Jwc does not match any stored key hashes
.

I suspect you need this keyhash:  1_2o50yTbt8W_kT0wCHtflQ2Jwc=

oky this is to strange : 1/2o50yTbt8W/kT0wCHtflQ2Jwc= works but that means that my terminal exports the wrong hash… :S super confused right now.

kevin

Most likely It means you are not building with the same keystore you’re generating the hash from.

Rob

What version of Corona SDK are you trying to build with?

Thanks

Rob

CoronaSDK-2013.2076.dmg

Hi rob any news on this?

If the user disables your app in the settings, then they have to turn it on.  We really can’t detect it because it generates a generic error (type 2 I think).  Your best bet is if get this error to is to show a native.showAlert() asking them to check the status of your app in their device’s settings.

Rob

Hi Rob,

I’m still having a problem with the facebook connection, i have tried it on multipole android phones but its not connecting

local facebook = require( "facebook" ) -- listener for "fbconnect" events local function listener( event ) &nbsp; &nbsp; if ( "session" == event.type ) then &nbsp; &nbsp; &nbsp; &nbsp; -- upon successful login, request list of friends &nbsp; &nbsp; &nbsp; &nbsp; if ( "login" == event.phase ) then &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( "me/friends" ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( "me/feed", "POST", { message="Hello Facebook" } ) &nbsp; &nbsp; &nbsp; &nbsp; end &nbsp; &nbsp; elseif ( "request" == event.type ) then &nbsp; &nbsp; &nbsp; &nbsp; -- event.response is a JSON object from the FB server &nbsp; &nbsp; &nbsp; &nbsp; local response = event.response &nbsp; &nbsp; &nbsp; &nbsp; print( response ) &nbsp; &nbsp; end end -- first argument is the app id that you get from Facebook facebook.login( "\*\*\*\*\*\*\*", listener, {"publish\_stream"} ) &nbsp;--replace XXXXXXXXXX with your Facebook App ID &nbsp;

even this this code is not working which is  strange as it was working before and i didn’t change anything  in the code.

its not showing up in the list (even when i klick OK to connect in the app):

One0BRj.png

i can mail you the apk if that helps ? 

Kevin

You likely don’t have something setup correctly.  Can you do screen shots of your settings from developers.facebook.com and the corona screen where you are building the app?

Is it trying to login to facebook?  What’s going on in your console log?  Have you put prints in your call back listener to make sure you are not getting errors from facebook?

Rob

lDp029F.png

2y4WCYs.png

not sure on how to do this :  Have you put prints in your call back listener to make sure you are not getting errors from facebook?

Kevin

Well there is one obvious problem.  Facebook apps do not run in the simulator.  They only run on device.

Rob

yes i know as mentioned before:  i have tried it on multipole android phones but its not connecting

kevin

We need to see the log file (adb logcat) from the device.  The log file from the simulator doesn’t help. 

Rob

Hi Rob here is the adb logcat hope it helps : http://we.tl/EfgBOkLlmW

I don’t see any evidence in the log file that facebook is being called at all.  Can you show some more code on where you’re invoking facebook?  Can you put some print statements in your facebook handler to see if you’re getting in there and what data is being returned from the call?

Thanks

Rob