here is a little test i have done:
local facebook = require( "facebook" ) -- listener for "fbconnect" events local function listener( event ) if ( "session" == event.type ) then -- upon successful login, request list of friends if ( "login" == event.phase ) then facebook.request( "me/friends" ) facebook.request( "me/feed", "POST", { message="Hello Facebook" } ) end elseif ( "request" == event.type ) then -- event.response is a JSON object from the FB server local response = event.response print( response ) end end -- first argument is the app id that you get from Facebook facebook.login( "\*\*\*\*\*\*\*\*\*\*", listener, {"publish\_stream"} )
V/AudioPolicyManagerBase( 208): setOutputDevice() setting same device 0000 or null device for output 2 W/fb4a(:\<default\>):BlueServiceQueue( 2691): Exception during service W/fb4a(:\<default\>):BlueServiceQueue( 2691): com.facebook.http.protocol.ApiException: Key hash JGn9F2vDQ\_w6hexLxdefCUpxYIA does not match any stored key hashes. W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.ApiResponseChecker.b(ApiResponseChecker.java:83) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.ApiResponseChecker.a(ApiResponseChecker.java:162) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.ApiResponse.g(ApiResponse.java:239) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:272) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:29) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.ApiResponseHandler.a(ApiResponseHandler.java:56) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.ApiResponseHandler.handleResponse(ApiResponseHandler.java:29) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:280) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:141) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.common.FbHttpRequestProcessor.b(FbHttpRequestProcessor.java:103) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.common.FbHttpRequestProcessor.a(FbHttpRequestProcessor.java:196) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:374) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:151) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.http.protocol.AbstractSingleMethodRunner.a(AbstractSingleMethodRunner.java:18) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:367) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:260) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.fbservice.service.BlueServiceQueue.e(BlueServiceQueue.java:299) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:53) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.fbservice.service.BlueServiceQueue$3.run(BlueServiceQueue.java:230) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at java.util.concurrent.FutureTask.run(FutureTask.java:234) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at com.facebook.common.executors.ListenableScheduledFutureImpl.run(ListenableScheduledFutureImpl.java:59) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at android.os.Handler.handleCallback(Handler.java:730) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at android.os.Handler.dispatchMessage(Handler.java:92) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at android.os.Looper.loop(Looper.java:137) W/fb4a(:\<default\>):BlueServiceQueue( 2691): at android.os.HandlerThread.run(HandlerThread.java:61) W/fb4a(:\<default\>):GDPDialog( 2691): Failed to send W/fb4a(:\<default\>):GDPDialog( 2691): com.facebook.fbservice.service.ServiceException: API\_ERROR: API\_ERROR W/fb4a(:\<default\>):GDPDialog( 2691): at com.facebook.fbservice.ops.BlueServiceOperation.c(BlueServiceOperation.java:640) W/fb4a(:\<default\>):GDPDialog( 2691): at com.facebook.fbservice.ops.BlueServiceOperation.c(BlueServiceOperation.java:48) W/fb4a(:\<default\>):GDPDialog( 2691): at com.facebook.fbservice.ops.BlueServiceOperation$2.run(BlueServiceOperation.java:605) W/fb4a(:\<default\>):GDPDialog( 2691): at android.os.Handler.handleCallback(Handler.java:730) W/fb4a(:\<default\>):GDPDialog( 2691): at android.os.Handler.dispatchMessage(Handler.java:92) W/fb4a(:\<default\>):GDPDialog( 2691): at android.os.Looper.loop(Looper.java:137) W/fb4a(:\<default\>):GDPDialog( 2691): at android.app.ActivityThread.main(ActivityThread.java:5419) W/fb4a(:\<default\>):GDPDialog( 2691): at java.lang.reflect.Method.invokeNative(Native Method) W/fb4a(:\<default\>):GDPDialog( 2691): at java.lang.reflect.Method.invoke(Method.java:525) W/fb4a(:\<default\>):GDPDialog( 2691): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187) W/fb4a(:\<default\>):GDPDialog( 2691): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) W/fb4a(:\<default\>):GDPDialog( 2691): at dalvik.system.NativeStart.main(Native Method) D/dalvikvm( 677): GC\_FOR\_ALLOC freed 5334K, 20% free 75606K/93836K, paused 166ms, total 166ms V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.facebook.katana/pause] D/PointerIcon( 677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0 D/PointerIcon( 677): setHoveringSpenCustomIcon IconType is same.1 D/STATUSBAR-StatusBarManagerService( 677): manageDisableList what=0x0 pkg=WindowManager.LayoutParams 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 EXITING}mOrientationRequetedFromKeyguard=false E/ViewRootImpl( 2691): sendUserActionEvent() mView == null V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.facebook.katana/resume] E/EnterpriseContainerManager( 677): ContainerPolicy Service is not yet ready!!! D/EnterpriseDeviceManager( 677): ContainerId: 0 W/LicenseLogService( 677): log() is called by non admin I/SurfaceFlinger( 205): id=1085 Removed Gacebook (6/7) I/SurfaceFlinger( 205): id=1085 Removed Gacebook (-2/7) E/MP-Decision( 1851): num online cores: 3 reqd : 2 available : 4 rq\_depth:2.100000 hotplug\_avg\_load\_dw: 88 E/MP-Decision( 1851): DOWN cpu:2 core\_idx:2 Ns:2.100000 Ts:240 total\_time\_down:245.000000 I/WindowManager( 677): Screenshot Window{457ed1a0 u0 com.facebook.katana/com.facebook.katana.platform.PlatformActivity} was all black! mSurfaceLayer=21110 minLayer=21110 maxLayer=21110 V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.facebook.katana/pause] 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 EXITING}mOrientationRequetedFromKeyguard=false D/PointerIcon( 677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0 D/PointerIcon( 677): setHoveringSpenCustomIcon IconType is same.1 D/STATUSBAR-PhoneStatusBar( 1037): animateCollapsePanels V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.seaburngames.games.helicopter\_bob/resume] D/dalvikvm( 677): GC\_FOR\_ALLOC freed 4336K, 20% free 75543K/93836K, paused 133ms, total 134ms I/SurfaceFlinger( 205): id=1086 Removed QlatformWra (4/6) I/SurfaceFlinger( 205): id=1086 Removed QlatformWra (-2/6) D/PointerIcon( 677): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0 D/PointerIcon( 677): setHoveringSpenCustomIcon IconType is same.1 D/STATUSBAR-StatusBarManagerService( 677): manageDisableList what=0x0 pkg=WindowManager.LayoutParams E/EnterpriseContainerManager( 677): ContainerPolicy Service is not yet ready!!! D/EnterpriseDeviceManager( 677): ContainerId: 0 W/LicenseLogService( 677): log() is called by non admin D/SSRMv2:AirViewOnOff( 677): DeviceInfo:: 0000000000 D/SSRMv2:AirViewOnOff( 677): SettingsAirViewInfo:: 000000000 D/SSRMv2:AirViewOnOff( 677): DeviceInfo:: 0000000000 D/SSRMv2:AirViewOnOff( 677): SettingsAirViewInfo:: 000000000 V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.seaburngames.games.helicopter\_bob/pause] W/InputMethodManagerService( 677): Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44b10340 (uid=10074 pid=23464) V/InputMethodManagerService( 677): Focus gain on non-focused client mCurClient info is ClientState{43718b78 uid 10214 pid 2691} I/SurfaceFlinger( 205): id=1084 Removed QlatformAct (3/5) I/SurfaceFlinger( 205): id=1084 Removed QlatformAct (-2/5) 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 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 V/SmartFaceService - 3rd party pause( 677): onReceive [android.intent.action.ACTIVITY\_STATE/com.seaburngames.games.helicopter\_bob/resume] I/SensorService( 677): info.selectDelay() ns=200000000 D/SensorService( 677): SensorDevice::setDelay, Return(true 1, false 0) = 1 D/SensorManager(23464): registerListener :: create queue :: handler = 0, name = K330 3-axis Accelerometer, delay = 200000, I/SurfaceFlinger( 205): id=1087 createSurf (1080x1920),1 flag=4, TurfaceView I/SurfaceFlinger( 205): id=1088 createSurf (1080x1920),1 flag=4, DoronaActiv