Amazon Kindle & Facebook request

Can anybody with a Kindle Fire test my app for Facebook functionality?

The Amazon review team tells me the game fails to login to facebook to post a message. Facebook app is published and activated. Login runs fine on my Kindle.

 

  1. Install and launch the app. 
  2. Tap on " Get 5000 free coins " 
  3. Tap on Yes and Sign into Facebook.

Link: http://www.rmbsoft.com/programs/gst.apk

Thanks in advance!

Testing now.

Doesn’t work on Kindle Fire HD.

Here’s what happens. When click on “Get 5000 free coins” it brings up the facebook login. It successfully logins, then posts permissions to be accepted. When I click accept, it fails to post anything. Instead I get message: “Failed…Uh oh. Something went wrong. Please try again later.”

Hmmm. Can you see anything in catlog maybe? Thanks for testing!

V/Corona  (15713): > Class.forName: network.LuaLoader

V/Corona  (15713): < Class.forName: network.LuaLoader

V/Corona  (15713): Loading via reflection: network.LuaLoader

I/Corona  (15713): Platform: KFTT / ARM Neon / 4.0.3 / PowerVR SGX 540 / OpenGL

ES 2.0 build 1.8@785978 / 2014.2511

V/Corona  (15713): > Class.forName: plugin.gamecircle.LuaLoader

V/Corona  (15713): < Class.forName: plugin.gamecircle.LuaLoader

V/Corona  (15713): Loading via reflection: plugin.gamecircle.LuaLoader

I/Corona  (15713): [RevMob] Session started for App Id: 54c668b2c10007dd64d1f428

V/Corona  (15713): > Class.forName: plugin.tapfortap.LuaLoader

V/Corona  (15713): < Class.forName: plugin.tapfortap.LuaLoader

V/Corona  (15713): Loading via reflection: plugin.tapfortap.LuaLoader

V/Corona  (15713): > Class.forName: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): < Class.forName: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): Loading via reflection: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): > Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (15713): < Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (15713): Loading via reflection: CoronaProvider.ads.vungle.LuaLoader

I/Corona  (15713): [RevMob] Install already registered in this device

I/Corona  (15713): tapfortap adlistener onFailToReceiveAd

I/Corona  (15713): Received event:

I/Corona  (15713): --> PARTICLE SYSTEM READY. LET’S ROCK.

I/Corona  (15713): CREATE SCENE ‘sample_visual_fireworks.lua’

I/Corona  (15713): ScreenW      1024

I/Corona  (15713): ScreenW      768

I/Corona  (15713): admob adlistener     false

I/Corona  (15713): SelectedAd:  table: 0xf86df0

I/Corona  (15713): currentSystem        Android

I/Corona  (15713): Type:        order

I/Corona  (15713): Choosen provider:    table: 0xf86fd0

I/Corona  (15713): [RevMob] Fullscreen loaded

I/Corona  (15713): revmob adlistener    adReceived

I/Corona  (15713): revmob adlistener    adDisplayed

I/Corona  (15713): [RevMob] Reporting impression

I/Corona  (15713): revmob adlistener    adClosed

I/Corona  (15713): [RevMob] Fullscreen closed

V/Corona  (15713): > Class.forName: facebook.LuaLoader

V/Corona  (15713): < Class.forName: facebook.LuaLoader

V/Corona  (15713): Loading via reflection: facebook.LuaLoader

I/Corona  (15713): [RevMob] Session started for App Id: 54c668b2c10007dd64d1f428

I/Corona  (15713): [RevMob] Install already registered in this device

James, do you have the full log instead of the Corona filtered one? I’m trying to find the Facebook error.

D/WebCore (18663): Current CSS styles use 47424 bytes

D/WebCore (18663): Current DOM nodes use 21324 bytes

I/Corona  (18663): admob adlistener     false

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-5] for call type [isKindle]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-5]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-6] for call type [isKindleRegistered]

D/KindleFireIPCProxy(18663): Client is bound to service

D/KindleFireIPCProxy(18663): Attempting to check is authenticated

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-6]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-7] for call type [isGCServiceReady]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-7]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-8] for call type [hasOptedIn]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-8]

D/GC_HttpNetworkClient(18663): Request: GET https://ags-ext.amazon.com/services/

featuredetection/getFeaturesUsage?GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&lo

cale=en_US&gameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/a

chievements/getAchievementsPublic

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/l

eaderboards/getLeaderboardsForGamePublic

D/GC_HttpNetworkClient(18663): Request: POST https://ags-ext.amazon.com/services

/ux/v1/getQueryData?GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&locale=en_US&gam

eId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-25] for call type [isGCServiceReady]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-25]

D/GC_HttpNetworkClient(18663): Request: GET https://cortana-gateway.amazon.com/c

ortana/gateway/profile/getDefaultProfile?playerId=0e69a41f-f65b-4c7d-9968-c54f39

1df619&GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&locale=en_US&gameId=9caa8c7a-

509e-4fe5-88f9-e2006be51cb6&PlayerId=0e69a41f-f65b-4c7d-9968-c54f391df619

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/dalvikvm(18663): GC_CONCURRENT freed 4639K, 26% free 14092K/18823K, paused 2ms

+3ms

I/dalvikvm(18663): Jit: resizing JitTable from 4096 to 8192

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AGSJniHandler(18663): Initializing Native Handlers

D/GC_Whispersync(18663): Starting write to file system

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

D/dalvikvm(18663): GC_CONCURRENT freed 946K, 25% free 14181K/18823K, paused 2ms+

4ms

V/GC_Whispersync(18663): Writing game data to disk: [{“gameData”:{}}]

D/GC_Whispersync(18663): Completed write of 25 bytes to file system

D/GC_Whispersync(18663): posting event: DISK_WRITE_COMPLETE

D/GC_Whispersync(18663): Checking whether Whispersync is enabled

D/dalvikvm(18663): GC_CONCURRENT freed 457K, 22% free 14789K/18823K, paused 2ms+

3ms

I/System.out(18663): --Amazon GameCircle Initialized With Following Features:

I/System.out(18663): -----Achievements

I/System.out(18663): -----Leaderboards

I/System.out(18663): -----Whispersync

I/AmazonInsightsSDK(18663): Session Resume Failed: Session is already running.

I/AmazonInsightsSDK(18663): Event: ‘WHISP…’ recorded to local filestore

D/GC_Whispersync(18663): Starting write to file system

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

V/GC_Whispersync(18663): Writing game data to disk: [{“gameData”:{}}]

D/GC_ClickableToastImpl(18663): Entering addToWindow…

D/GC_Whispersync(18663): Completed write of 25 bytes to file system

D/GC_Whispersync(18663): posting event: DISK_WRITE_COMPLETE

I/Corona  (18663): SelectedAd:  table: 0xf7c898

I/Corona  (18663): currentSystem        Android

I/Corona  (18663): Type:        order

I/Corona  (18663): Choosen provider:    table: 0xf63850

I/ActivityStack(  203): START {flg=0x80000 cmp=com.rmbsoft.slots/com.google.andr

oid.gms.ads.AdActivity (has extras)} from pid 18663

V/ActivityStack(  203): Prepare open transition: starting ActivityRecord{415e82e

8 com.rmbsoft.slots/com.google.android.gms.ads.AdActivity}

I/AmazonInsightsSDK(18663): Session Paused.

V/AmazonInsightsSDK(18663): Firing Session Event: _session.pause

I/AmazonInsightsSDK(18663): Event: ‘_sess…’ recorded to local filestore

D/AGSWorkerThread(18663): Worker thread died.

I/AmazonInsightsSDK(18663): Event: ‘GameS…’ recorded to local filestore

V/Sensors (  203): int poll__setDelay(sensors_poll_device_t*, int, int64_t)

V/Sensors (  203): int sensors_poll_context_t::setDelay(int, int64_t)

V/Sensors (  203): setDelay - sensor Accelerometer (handle 4), rate 66 ms (15.00

 Hz)

I/AudioPolicyManagerBase(  110): stopOutput() output 1, stream 3, session 224

I/AmazonInsightsSDK(18663): Session Pause Failed: Session is already paused.

V/GC_ClickableToastImpl(18663): Tried to remove toast but none was attached.

I/System.out(18663): ----------Amazon GameCircle Released----------

V/ActivityStack(  203): Prepare open transition: prev=ActivityRecord{415e5d08 co

m.rmbsoft.slots/com.ansca.corona.CoronaActivity}

I/AmazonInsightsSDK(18663): Event: ‘PageV…’ recorded to local filestore

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-45] for call type [isKindle]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-45]

I/Ads     (18663): Ad opening.

D/GameCircleClient(18663): SDK Version: 2.4.2

D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.P

II(18663): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0:<obscured>

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): Options bundle is null

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): isAPIKeyVa

lid : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): com.rmbsoft.slots calling getAppId

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/dalvikvm(18663): GC_CONCURRENT freed 749K, 19% free 15308K/18823K, paused 2ms+

3ms

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/GameCircleClient(18663): AmazonGamesClient.initialize() has already been calle

d.  Reinitializing.

D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.P

II(18663): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0:<obscured>

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): Options bundle is null

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

V/AmazonInsightsSDK(18663): Firing Session Event: _session.resume

I/AmazonInsightsSDK(18663): Event: ‘_sess…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Session Resumed.

W/Whispersync(18663): WhispersyncClient has already been initialized

D/WebCore (18663): *-* Start browser instrument

D/webcoreglue(18663): About to clear cache and current cache has 133427 bytes li

ve and 771125 bytes dead

I/ActivityManager(  203): Displayed com.rmbsoft.slots/com.google.android.gms.ads

.AdActivity: +299ms

D/OpenGLRenderer(18663): Flushing caches (mode 0)

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-46] for call type [isWhispersyncEnabled]

D/KindleFireIPCProxy(18663): Checking isWhispersyncEnabled: true

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-46]

D/WebCore (18663): *-* Start browser instrument

D/GC_Whispersync(18663): Whispersync is ENABLED

D/GC_Whispersync(18663): Upload to cloud started

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

V/GC_Whispersync(18663): Uploading document to cloud: [{“gameData”:{}}]

D/GC_HttpNetworkClient(18663): Request: POST https://ags-ext.amazon.com/service/

gamedata/WhisperData?gameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

D/GC_Whispersync(18663): Received HTTP Status Code [200] and content [{}] when s

aving data to the cloud

D/GC_Whipsersync(18663): Measured clock skew as: -1

D/GC_Whispersync(18663): posting event: DATA_UPLOADED_TO_CLOUD

D/GC_Whispersync(18663): posting event: ALREADY_SYNCED

D/GC_Whispersync(18663): Upload to cloud completed

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Event: ‘WHISP…’ recorded to local filestore

D/WebCore (18663): *-* Total load time: 282.81 ms, thread time: 162.00 ms for fi

le:///data/data/com.rmbsoft.slots/files/.ags/current/toast.html

D/WebCore (18663): Only uptill WebViewCoreTimeCounter it is part of webcore thre

ad time

D/WebCore (18663): Rest of the timecounters are part of either  UI thread or Tex

tureGenrators(TG) thread

D/WebCore (18663): Webkit TexGen thread time: 0.00 ms, Webkit UI thread time: 0.

00 ms

D/WebCore (18663): *-* Total css parsing time: 19.00 ms/percent webcore 11.73  c

alled 22 times

D/WebCore (18663): *-* Total javascript time: 0.00 ms/percent webcore 0.00

D/WebCore (18663): *-* Total javascript init time: 9.00 ms/percent webcore 5.56

 called 1 times

D/WebCore (18663): *-* Total javascript parsing time: 4.00 ms/percent webcore 2.

47  called 13 times

D/WebCore (18663): *-* Total javascript execution time: 64.00 ms/percent webcore

 39.51  called 17 times

D/WebCore (18663): *-* Total calculate style time: 2.00 ms/percent webcore 1.23

 called 9 times

D/WebCore (18663): *-* Total Java callback (frame bridge) time: 2.00 ms/percent

webcore 1.23  called 38 times

D/WebCore (18663): *-* Total parsing (may include calcStyle, Java callback or in

line script execution) time: 20.00 ms/percent webcore 12.35  called 11 times

D/WebCore (18663): *-* Total layout time: 6.00 ms/percent webcore 3.70  called 9

 times

D/WebCore (18663): *-* Total native 1 (frame bridge) time: 9.00 ms/percent webco

re 5.56  called 6 times

D/WebCore (18663): *-* Total native 2 (resource load) time: 0.00 ms/percent webc

ore 0.00

D/WebCore (18663): *-* Total native 3 (shared timer) time: 7.00 ms/percent webco

re 4.32  called 3 times

D/WebCore (18663): *-* Total build nav (webview core) time: 1.00 ms/percent webc

ore 0.62  called 2 times

D/WebCore (18663): *-* Total record content (webview core) time: 1.00 ms/percent

 webcore 0.62  called 1 times

D/WebCore (18663): *-* Total native 4 (webview core) time: 1.00 ms/percent webco

re 0.62  called 7 times

D/WebCore (18663): *-* Total draw content (webview ui) time: 70.00 ms called 20

times

D/WebCore (18663): *-* Total tryUpdateQueueWithBitmap (TransferQueue) time: 13.0

0 ms called 20 times

D/WebCore (18663): *-* Total blitTileFromQueue (TransferQueue) time: 17.00 ms ca

lled 20 times

D/WebCore (18663): *-* Total webkit_TG_CPU time: 0.00 ms

D/WebCore (18663): *-* Total webkit_UI_CPU time: 0.00 ms

D/WebCore (18663): Current cache has 82125 bytes live and 558196 bytes dead

D/WebCore (18663): Current render arena takes 8198 bytes

D/WebCore (18663): Current CSS styles use 79216 bytes

D/WebCore (18663): Current DOM nodes use 30604 bytes

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/g

amedata/updateGameTimePlayed

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/g

amedata/getGameTimePlayed

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

V/Sensors (  203): accel data: -0.342488 0.004790 10.454260

V/EchoCanceller(  110): notifyStreamOutClosed()

D/NetworkController(  295): intent is = Intent { act=android.net.wifi.RSSI_CHANG

ED flg=0x10000010 (has extras) }

D/NetworkController(  295): mWifiConnected = true

V/Sensors (  203): accel data: -0.536484 0.385598 10.569221

W/GC_AsynchronousReplyMessenger(18663): Request 1a12649d-b6fe-4e72-b139-0a5ac239

7e56 timed out.

V/Sensors (  203): accel data: -0.847837 -0.397573 10.380014

V/AlarmManager(  203): sending alarm Alarm{41a8b3e0 type 2 com.facebook.katana}

Thanks James, I was able to reproduce the error myself now, and get a response to see what’s going on.

I get this reponse:

(#200) The user hasn’t authorized the application to perform this action

This is my code, maybe somebody can give me a hint what I’m doing wrong.

local facebook = require "facebook"; local json = require "json"; local facebookHelper = {}; local appID = "1588028748098867"; facebookHelper.postOnUserWall = function(message) native.setActivityIndicator(true); local listener; listener = function(event) if ( "session" == event.type ) then if ( "login" == event.phase ) then local postMsg = { message = "Playing Golden Slots Treasure on my Kindle Fire!", link="http://www.amazon.com/gp/mas/dl/android?p=com.rmbsoft.slots", name = "Golden Slots Treasure", caption = "Play Golden Slots Treasure!" }; facebook.request( "me/feed", "POST", postMsg ) native.setActivityIndicator(true); end elseif ("request" == event.type) then local respTab = json.decode(event.response); native.setActivityIndicator(false); if respTab and ( not event.isError ) then native.showAlert("Success", "You got 5.000 free coins!", {"OK"}); ShowCoinAnimFB() \_G.Coins = \_G.Coins + 5000 Utils.setSaveValue("coins",\_G.Coins,true) BalanceShadowText.text = tostring(\_G.Coins) BalanceText.text = tostring(\_G.Coins) networksLib.setAchievement(100,"sociallife") \_G.FacebookShare = 1 Utils.setSaveValue("fbshare",\_G.FacebookShare,true) FacebookBonusWheel.isVisible = false btnFreeCoins.isVisible = false BalanceShadowText.text = tostring(\_G.Coins) BalanceText.text = tostring(\_G.Coins) else --- Error gameBusy = false print("Response:",event.response) native.showAlert("Failed", "Uh oh. Something went wrong. Please try again later", {"OK"}); end end native.setActivityIndicator(nil); end facebook.login(appID, listener, {"publish\_actions"}); end

I don’t understand the permission error, because I log into Facebook asking permissions with:

facebook.login(appID, listener, {“publish_actions”});

The login succeeds, but then FB tells me the user didn’t grand me permission.

Is there anything wrong with my code?

Are you asking for basic permissions first, then your publish_actions on a second login pass?  Facebook requires a two pass login.  Have you also submitted your app for approval with Facebook yet?  Non-test accounts can’t use publishing features until Facebook approves your app.

Rob

Hi Rob,

First I login to Facebook with 

facebook.login(appID, listener, {“publish_actions”});

then as soon as I’m logged in successfully, I try to post a message:

facebook.request( “me/feed”, “POST”, postMsg )

You have to call facebook.login(appID, listener) with no other parameters when the app starts.   Later when you need to post, you then all it again asking for publish_actions.  When that login triggers successfully (i.e. you were granted the permissions), then you can call facebook.request().

Yes, this seems hackish and insane, but it’s the way Facebook wants it done.  They want you to delay asking for permissions until the user needs them (better engagement). 

Thanks, Rob. I will try that.

Testing now.

Doesn’t work on Kindle Fire HD.

Here’s what happens. When click on “Get 5000 free coins” it brings up the facebook login. It successfully logins, then posts permissions to be accepted. When I click accept, it fails to post anything. Instead I get message: “Failed…Uh oh. Something went wrong. Please try again later.”

Hmmm. Can you see anything in catlog maybe? Thanks for testing!

V/Corona  (15713): > Class.forName: network.LuaLoader

V/Corona  (15713): < Class.forName: network.LuaLoader

V/Corona  (15713): Loading via reflection: network.LuaLoader

I/Corona  (15713): Platform: KFTT / ARM Neon / 4.0.3 / PowerVR SGX 540 / OpenGL

ES 2.0 build 1.8@785978 / 2014.2511

V/Corona  (15713): > Class.forName: plugin.gamecircle.LuaLoader

V/Corona  (15713): < Class.forName: plugin.gamecircle.LuaLoader

V/Corona  (15713): Loading via reflection: plugin.gamecircle.LuaLoader

I/Corona  (15713): [RevMob] Session started for App Id: 54c668b2c10007dd64d1f428

V/Corona  (15713): > Class.forName: plugin.tapfortap.LuaLoader

V/Corona  (15713): < Class.forName: plugin.tapfortap.LuaLoader

V/Corona  (15713): Loading via reflection: plugin.tapfortap.LuaLoader

V/Corona  (15713): > Class.forName: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): < Class.forName: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): Loading via reflection: CoronaProvider.ads.admob.LuaLoader

V/Corona  (15713): > Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (15713): < Class.forName: CoronaProvider.ads.vungle.LuaLoader

V/Corona  (15713): Loading via reflection: CoronaProvider.ads.vungle.LuaLoader

I/Corona  (15713): [RevMob] Install already registered in this device

I/Corona  (15713): tapfortap adlistener onFailToReceiveAd

I/Corona  (15713): Received event:

I/Corona  (15713): --> PARTICLE SYSTEM READY. LET’S ROCK.

I/Corona  (15713): CREATE SCENE ‘sample_visual_fireworks.lua’

I/Corona  (15713): ScreenW      1024

I/Corona  (15713): ScreenW      768

I/Corona  (15713): admob adlistener     false

I/Corona  (15713): SelectedAd:  table: 0xf86df0

I/Corona  (15713): currentSystem        Android

I/Corona  (15713): Type:        order

I/Corona  (15713): Choosen provider:    table: 0xf86fd0

I/Corona  (15713): [RevMob] Fullscreen loaded

I/Corona  (15713): revmob adlistener    adReceived

I/Corona  (15713): revmob adlistener    adDisplayed

I/Corona  (15713): [RevMob] Reporting impression

I/Corona  (15713): revmob adlistener    adClosed

I/Corona  (15713): [RevMob] Fullscreen closed

V/Corona  (15713): > Class.forName: facebook.LuaLoader

V/Corona  (15713): < Class.forName: facebook.LuaLoader

V/Corona  (15713): Loading via reflection: facebook.LuaLoader

I/Corona  (15713): [RevMob] Session started for App Id: 54c668b2c10007dd64d1f428

I/Corona  (15713): [RevMob] Install already registered in this device

James, do you have the full log instead of the Corona filtered one? I’m trying to find the Facebook error.

D/WebCore (18663): Current CSS styles use 47424 bytes

D/WebCore (18663): Current DOM nodes use 21324 bytes

I/Corona  (18663): admob adlistener     false

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-5] for call type [isKindle]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-5]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-6] for call type [isKindleRegistered]

D/KindleFireIPCProxy(18663): Client is bound to service

D/KindleFireIPCProxy(18663): Attempting to check is authenticated

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-6]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-7] for call type [isGCServiceReady]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-7]

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-8] for call type [hasOptedIn]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-8]

D/GC_HttpNetworkClient(18663): Request: GET https://ags-ext.amazon.com/services/

featuredetection/getFeaturesUsage?GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&lo

cale=en_US&gameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/a

chievements/getAchievementsPublic

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/l

eaderboards/getLeaderboardsForGamePublic

D/GC_HttpNetworkClient(18663): Request: POST https://ags-ext.amazon.com/services

/ux/v1/getQueryData?GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&locale=en_US&gam

eId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-25] for call type [isGCServiceReady]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-25]

D/GC_HttpNetworkClient(18663): Request: GET https://cortana-gateway.amazon.com/c

ortana/gateway/profile/getDefaultProfile?playerId=0e69a41f-f65b-4c7d-9968-c54f39

1df619&GameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6&locale=en_US&gameId=9caa8c7a-

509e-4fe5-88f9-e2006be51cb6&PlayerId=0e69a41f-f65b-4c7d-9968-c54f391df619

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/dalvikvm(18663): GC_CONCURRENT freed 4639K, 26% free 14092K/18823K, paused 2ms

+3ms

I/dalvikvm(18663): Jit: resizing JitTable from 4096 to 8192

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AGSJniHandler(18663): Initializing Native Handlers

D/GC_Whispersync(18663): Starting write to file system

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

D/dalvikvm(18663): GC_CONCURRENT freed 946K, 25% free 14181K/18823K, paused 2ms+

4ms

V/GC_Whispersync(18663): Writing game data to disk: [{“gameData”:{}}]

D/GC_Whispersync(18663): Completed write of 25 bytes to file system

D/GC_Whispersync(18663): posting event: DISK_WRITE_COMPLETE

D/GC_Whispersync(18663): Checking whether Whispersync is enabled

D/dalvikvm(18663): GC_CONCURRENT freed 457K, 22% free 14789K/18823K, paused 2ms+

3ms

I/System.out(18663): --Amazon GameCircle Initialized With Following Features:

I/System.out(18663): -----Achievements

I/System.out(18663): -----Leaderboards

I/System.out(18663): -----Whispersync

I/AmazonInsightsSDK(18663): Session Resume Failed: Session is already running.

I/AmazonInsightsSDK(18663): Event: ‘WHISP…’ recorded to local filestore

D/GC_Whispersync(18663): Starting write to file system

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

V/GC_Whispersync(18663): Writing game data to disk: [{“gameData”:{}}]

D/GC_ClickableToastImpl(18663): Entering addToWindow…

D/GC_Whispersync(18663): Completed write of 25 bytes to file system

D/GC_Whispersync(18663): posting event: DISK_WRITE_COMPLETE

I/Corona  (18663): SelectedAd:  table: 0xf7c898

I/Corona  (18663): currentSystem        Android

I/Corona  (18663): Type:        order

I/Corona  (18663): Choosen provider:    table: 0xf63850

I/ActivityStack(  203): START {flg=0x80000 cmp=com.rmbsoft.slots/com.google.andr

oid.gms.ads.AdActivity (has extras)} from pid 18663

V/ActivityStack(  203): Prepare open transition: starting ActivityRecord{415e82e

8 com.rmbsoft.slots/com.google.android.gms.ads.AdActivity}

I/AmazonInsightsSDK(18663): Session Paused.

V/AmazonInsightsSDK(18663): Firing Session Event: _session.pause

I/AmazonInsightsSDK(18663): Event: ‘_sess…’ recorded to local filestore

D/AGSWorkerThread(18663): Worker thread died.

I/AmazonInsightsSDK(18663): Event: ‘GameS…’ recorded to local filestore

V/Sensors (  203): int poll__setDelay(sensors_poll_device_t*, int, int64_t)

V/Sensors (  203): int sensors_poll_context_t::setDelay(int, int64_t)

V/Sensors (  203): setDelay - sensor Accelerometer (handle 4), rate 66 ms (15.00

 Hz)

I/AudioPolicyManagerBase(  110): stopOutput() output 1, stream 3, session 224

I/AmazonInsightsSDK(18663): Session Pause Failed: Session is already paused.

V/GC_ClickableToastImpl(18663): Tried to remove toast but none was attached.

I/System.out(18663): ----------Amazon GameCircle Released----------

V/ActivityStack(  203): Prepare open transition: prev=ActivityRecord{415e5d08 co

m.rmbsoft.slots/com.ansca.corona.CoronaActivity}

I/AmazonInsightsSDK(18663): Event: ‘PageV…’ recorded to local filestore

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-45] for call type [isKindle]

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-45]

I/Ads     (18663): Ad opening.

D/GameCircleClient(18663): SDK Version: 2.4.2

D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.P

II(18663): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0:<obscured>

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): Options bundle is null

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): isAPIKeyVa

lid : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): com.rmbsoft.slots calling getAppId

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/dalvikvm(18663): GC_CONCURRENT freed 749K, 19% free 15308K/18823K, paused 2ms+

3ms

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

I/GameCircleClient(18663): AmazonGamesClient.initialize() has already been calle

d.  Reinitializing.

D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.P

II(18663): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0:<obscured>

I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(1

8663): Options bundle is null

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): getAppInfo

 : packageName=com.rmbsoft.slots

I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(18663): Finding AP

I Key for com.rmbsoft.slots

I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(18663): Attempt

ing to parse API Key from assets directory

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): Begin decoding API

 Key for packageName=com.rmbsoft.slots

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): APIKey:<obscur

ed>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663):  num sigs = 1

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Signature chec

king.:<obscured>

D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(18663): Fingerpirint c

hecking:<obscured>

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): scopes has no mapp

ing in json, returning null array

I/com.amazon.identity.auth.device.appid.APIKeyDecoder(18663): perm has no mappin

g in json, returning null array

V/AmazonInsightsSDK(18663): Firing Session Event: _session.resume

I/AmazonInsightsSDK(18663): Event: ‘_sess…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Session Resumed.

W/Whispersync(18663): WhispersyncClient has already been initialized

D/WebCore (18663): *-* Start browser instrument

D/webcoreglue(18663): About to clear cache and current cache has 133427 bytes li

ve and 771125 bytes dead

I/ActivityManager(  203): Displayed com.rmbsoft.slots/com.google.android.gms.ads

.AdActivity: +299ms

D/OpenGLRenderer(18663): Flushing caches (mode 0)

D/GC_NativeKindleFireStateCallHandler(18663): Processing request [backgroundwebv

iew-46] for call type [isWhispersyncEnabled]

D/KindleFireIPCProxy(18663): Checking isWhispersyncEnabled: true

D/GC_NativeKindleFireStateCallHandler(18663): Returning reply [{“value”:true}] f

or request [backgroundwebview-46]

D/WebCore (18663): *-* Start browser instrument

D/GC_Whispersync(18663): Whispersync is ENABLED

D/GC_Whispersync(18663): Upload to cloud started

V/GC_Whispersync(18663): GameDataMap - Deep copy of GameDataMap with name: null

V/GC_Whispersync(18663): GameDataMap copy took 0 msec.

V/GC_Whispersync(18663): Uploading document to cloud: [{“gameData”:{}}]

D/GC_HttpNetworkClient(18663): Request: POST https://ags-ext.amazon.com/service/

gamedata/WhisperData?gameId=9caa8c7a-509e-4fe5-88f9-e2006be51cb6

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

D/GC_Whispersync(18663): Received HTTP Status Code [200] and content [{}] when s

aving data to the cloud

D/GC_Whipsersync(18663): Measured clock skew as: -1

D/GC_Whispersync(18663): posting event: DATA_UPLOADED_TO_CLOUD

D/GC_Whispersync(18663): posting event: ALREADY_SYNCED

D/GC_Whispersync(18663): Upload to cloud completed

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

I/AmazonInsightsSDK(18663): Event: ‘WHISP…’ recorded to local filestore

D/WebCore (18663): *-* Total load time: 282.81 ms, thread time: 162.00 ms for fi

le:///data/data/com.rmbsoft.slots/files/.ags/current/toast.html

D/WebCore (18663): Only uptill WebViewCoreTimeCounter it is part of webcore thre

ad time

D/WebCore (18663): Rest of the timecounters are part of either  UI thread or Tex

tureGenrators(TG) thread

D/WebCore (18663): Webkit TexGen thread time: 0.00 ms, Webkit UI thread time: 0.

00 ms

D/WebCore (18663): *-* Total css parsing time: 19.00 ms/percent webcore 11.73  c

alled 22 times

D/WebCore (18663): *-* Total javascript time: 0.00 ms/percent webcore 0.00

D/WebCore (18663): *-* Total javascript init time: 9.00 ms/percent webcore 5.56

 called 1 times

D/WebCore (18663): *-* Total javascript parsing time: 4.00 ms/percent webcore 2.

47  called 13 times

D/WebCore (18663): *-* Total javascript execution time: 64.00 ms/percent webcore

 39.51  called 17 times

D/WebCore (18663): *-* Total calculate style time: 2.00 ms/percent webcore 1.23

 called 9 times

D/WebCore (18663): *-* Total Java callback (frame bridge) time: 2.00 ms/percent

webcore 1.23  called 38 times

D/WebCore (18663): *-* Total parsing (may include calcStyle, Java callback or in

line script execution) time: 20.00 ms/percent webcore 12.35  called 11 times

D/WebCore (18663): *-* Total layout time: 6.00 ms/percent webcore 3.70  called 9

 times

D/WebCore (18663): *-* Total native 1 (frame bridge) time: 9.00 ms/percent webco

re 5.56  called 6 times

D/WebCore (18663): *-* Total native 2 (resource load) time: 0.00 ms/percent webc

ore 0.00

D/WebCore (18663): *-* Total native 3 (shared timer) time: 7.00 ms/percent webco

re 4.32  called 3 times

D/WebCore (18663): *-* Total build nav (webview core) time: 1.00 ms/percent webc

ore 0.62  called 2 times

D/WebCore (18663): *-* Total record content (webview core) time: 1.00 ms/percent

 webcore 0.62  called 1 times

D/WebCore (18663): *-* Total native 4 (webview core) time: 1.00 ms/percent webco

re 0.62  called 7 times

D/WebCore (18663): *-* Total draw content (webview ui) time: 70.00 ms called 20

times

D/WebCore (18663): *-* Total tryUpdateQueueWithBitmap (TransferQueue) time: 13.0

0 ms called 20 times

D/WebCore (18663): *-* Total blitTileFromQueue (TransferQueue) time: 17.00 ms ca

lled 20 times

D/WebCore (18663): *-* Total webkit_TG_CPU time: 0.00 ms

D/WebCore (18663): *-* Total webkit_UI_CPU time: 0.00 ms

D/WebCore (18663): Current cache has 82125 bytes live and 558196 bytes dead

D/WebCore (18663): Current render arena takes 8198 bytes

D/WebCore (18663): Current CSS styles use 79216 bytes

D/WebCore (18663): Current DOM nodes use 30604 bytes

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/g

amedata/updateGameTimePlayed

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

D/GC_HttpNetworkClient(18663): Request: PUT https://ags-ext.amazon.com/service/g

amedata/getGameTimePlayed

D/GC_HttpNetworkClient(18663): Result:HTTP/1.1 200 OK

I/AmazonInsightsSDK(18663): Event: ‘GameC…’ recorded to local filestore

V/Sensors (  203): accel data: -0.342488 0.004790 10.454260

V/EchoCanceller(  110): notifyStreamOutClosed()

D/NetworkController(  295): intent is = Intent { act=android.net.wifi.RSSI_CHANG

ED flg=0x10000010 (has extras) }

D/NetworkController(  295): mWifiConnected = true

V/Sensors (  203): accel data: -0.536484 0.385598 10.569221

W/GC_AsynchronousReplyMessenger(18663): Request 1a12649d-b6fe-4e72-b139-0a5ac239

7e56 timed out.

V/Sensors (  203): accel data: -0.847837 -0.397573 10.380014

V/AlarmManager(  203): sending alarm Alarm{41a8b3e0 type 2 com.facebook.katana}

Thanks James, I was able to reproduce the error myself now, and get a response to see what’s going on.

I get this reponse:

(#200) The user hasn’t authorized the application to perform this action

This is my code, maybe somebody can give me a hint what I’m doing wrong.

local facebook = require "facebook"; local json = require "json"; local facebookHelper = {}; local appID = "1588028748098867"; facebookHelper.postOnUserWall = function(message) native.setActivityIndicator(true); local listener; listener = function(event) if ( "session" == event.type ) then if ( "login" == event.phase ) then local postMsg = { message = "Playing Golden Slots Treasure on my Kindle Fire!", link="http://www.amazon.com/gp/mas/dl/android?p=com.rmbsoft.slots", name = "Golden Slots Treasure", caption = "Play Golden Slots Treasure!" }; facebook.request( "me/feed", "POST", postMsg ) native.setActivityIndicator(true); end elseif ("request" == event.type) then local respTab = json.decode(event.response); native.setActivityIndicator(false); if respTab and ( not event.isError ) then native.showAlert("Success", "You got 5.000 free coins!", {"OK"}); ShowCoinAnimFB() \_G.Coins = \_G.Coins + 5000 Utils.setSaveValue("coins",\_G.Coins,true) BalanceShadowText.text = tostring(\_G.Coins) BalanceText.text = tostring(\_G.Coins) networksLib.setAchievement(100,"sociallife") \_G.FacebookShare = 1 Utils.setSaveValue("fbshare",\_G.FacebookShare,true) FacebookBonusWheel.isVisible = false btnFreeCoins.isVisible = false BalanceShadowText.text = tostring(\_G.Coins) BalanceText.text = tostring(\_G.Coins) else --- Error gameBusy = false print("Response:",event.response) native.showAlert("Failed", "Uh oh. Something went wrong. Please try again later", {"OK"}); end end native.setActivityIndicator(nil); end facebook.login(appID, listener, {"publish\_actions"}); end

I don’t understand the permission error, because I log into Facebook asking permissions with:

facebook.login(appID, listener, {“publish_actions”});

The login succeeds, but then FB tells me the user didn’t grand me permission.

Is there anything wrong with my code?

Are you asking for basic permissions first, then your publish_actions on a second login pass?  Facebook requires a two pass login.  Have you also submitted your app for approval with Facebook yet?  Non-test accounts can’t use publishing features until Facebook approves your app.

Rob