Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

facebook problems
Started by mmk.verheijden Nov 21 2013 10:25 AM

- - - - -
27 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

for some reason my post to facebook is now working anymore i have remove my app form my "facebook Apps you use" page end when i open the app i get "app would like to access your...."  popup and when i click on OK the app is not readded to the list. is anyone els havin the same problems? 

 

 

code: 

 

local facebook = require "facebook"
local fbAppID = " *************** " 


    _W = -29;
    storyboard.purgeScene("restart")
    keeping_score = false
    function onLoginSuccess()
-- Upload 'corona.png' to current user's account
     attachment = {
       message = "I have achieved ".. score .. " points playing.... download for FREE iPhone & Android at www.site",
        source = { baseDir=system.ResourceDirectory, filename="Built_with_Corona_LG.png", type="image" }
    }
    facebook.request( "me/photos", "POST", attachment )
    facebook.request( "me/feed", "POST", {message = "I have achieved (".. score .. ") points, playing... download for FREE iPhone & Android at www.site"} )
end


-- facebook listener
function fbListener( event )
    if event.isError then
        native.showAlert( "ERROR", event.response, { "OK" } )
    else
        if event.type == "session" and event.phase == "login" then
            -- login was a success; call function
            onLoginSuccess()
        
        elseif event.type == "request" then
            -- this block is executed upon successful facebook.request() call




local function onComplete( event )
    if "clicked" == event.action then
        local i = event.index
            
        if 1 == i then
        storyboard.gotoScene("adgameover", "fade", 400)
        end
    end
end
       native.showAlert( "Success", "Your Score has been uploaded.", { "OK" }, onComplete )
        end
    end
end


facebook.login( fbAppID, fbListener, { "publish_stream" } )
 

 

    

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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

 

Thanks

Rob



[TOPIC: post.html]
#3

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi


[TOPIC: post.html]
#4

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

Hi rob any news on this?

[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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



[TOPIC: post.html]
#6

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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 )
    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"} )  --replace XXXXXXXXXX with your Facebook App ID
 

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

 

 

 

 

 



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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



[TOPIC: post.html]
#8

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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

 

Rob



[TOPIC: post.html]
#10

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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

 

kevin



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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

 

Rob



[TOPIC: post.html]
#12

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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



[TOPIC: post.html]
#14

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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
 

 

 



[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

The error can be summed up in this one line:

 

com.facebook.http.protocol.ApiException: Key hash JGn9F2vDQ_w6hexLxdefCUpxYIA does not match any stored key hashes

 

Your hash of your keystore isn't correct.  What you put in your developer profile has to match the actual keystore you are building with.  If you read this tutorial, it should clear this issue up.

 

http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

 

Rob



[TOPIC: post.html]
#16

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

In that case does it the hash change if you build on windows or mac? my original key hash was created on a windows ps and a windows corona build, I'm using mac now.

 

Kevin



[TOPIC: post.html]
#17

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

PS I'm using :

 

keytool -exportcert -alias androiddebugkey -keystore ~/Applications/CoronaSDK/Resource Library/Android/debug.keystore | openssl sha1 -binary | openssl base64

 

to create a new key on mac this is correct ? 
 
Kevin


[TOPIC: post.html]
#18

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

I don't know if the keystore we ship on Windows is different than on the Mac or not.  I would think the key hash generation would produce the same value regardless of platform, if the keystore's were the same.

 

That command looks correct to generate a keyhash of the default Corona SDK debugkeystore.

 

Rob



[TOPIC: post.html]
#19

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

Hi Rob does the Class Name:com.ansca.corona.CoronaActivity change if you use your one keystore/keyhash ? 

 

Kevin



[TOPIC: post.html]
#20

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

No, that field should always be com.ansca.corona.CoronaActivity.



[TOPIC: post.html]
#21

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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


[TOPIC: post.html]
#22

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

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



[TOPIC: post.html]
#23

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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



[TOPIC: post.html]
#24

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 9,962 posts
  • Jedi

Can you post a new version of your adb logcat?



[TOPIC: post.html]
#25

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 167 posts
  • Jedi

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 



[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]