{ "id": "97830", "key": "TIMOB-10099", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-31T13:04:10.000+0000", "created": "2012-07-23T16:15:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and070112", "qe-nfc" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-31T13:04:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "While running some Facebook tests, I was unable to log in on the Droid which had no Facebook app installed. After further investigation, I could not determine if the lack of Facebook app was entirely relevant.\r\n\r\nThe console reported:\r\n{code}\r\nD/Module ( 2075): Loading module: ../examples/facebook_login_logout -> Resources/examples/facebook_login_logout.js\r\nD/dalvikvm( 2075): GC_FOR_MALLOC freed 5598 objects / 354176 bytes in 61ms\r\nD/LoginButtonProxy( 2075): (KrollRuntimeThread) [1616,136620] Second constructor called\r\nD/TiUIView( 2075): (main) [214,136834] Nativeview is null\r\nD/TiUIView( 2075): (main) [58,136892] Nativeview is null\r\nI/ActivityManager( 1086): Displayed activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity: 682 ms (total 682 ms)\r\nE/FacebookModule( 2075): (main) [3149,140041] LoginDialogListener onError: The connection to the server was unsuccessful.\r\nE/FacebookModule( 2075): com.facebook.android.DialogError: The connection to the server was unsuccessful.\r\nE/FacebookModule( 2075): \tat com.facebook.android.FbDialog$FbWebViewClient.onReceivedError(FbDialog.java:211)\r\nE/FacebookModule( 2075): \tat android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:303)\r\nE/FacebookModule( 2075): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\nE/FacebookModule( 2075): \tat android.os.Looper.loop(Looper.java:123)\r\nE/FacebookModule( 2075): \tat android.app.ActivityThread.main(ActivityThread.java:4627)\r\nE/FacebookModule( 2075): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/FacebookModule( 2075): \tat java.lang.reflect.Method.invoke(Method.java:521)\r\nE/FacebookModule( 2075): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)\r\nE/FacebookModule( 2075): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\nE/FacebookModule( 2075): \tat dalvik.system.NativeStart.main(Native Method)\r\nE/FacebookModule( 2075): (main) [12,140053] onAuthFail: The connection to the server was unsuccessful.\r\nI/dalvikvm( 2075): Jit: resizing JitTable from 4096 to 8192\r\nD/dalvikvm( 1424): GC_EXPLICIT freed 278 objects / 13984 bytes in 76ms\r\n{code}\r\n\r\nThinking that the lack of the Facebook was the cause, I attempted to use the Droid 3 with the Facebook tests, and was unable to login with the following result in the console:\r\n{code}\r\n\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [386503,424630] LoginDialogListener onFacebookError: invalid_key:Android key mismatch. Your key \"zON/CPoDnIgHvMure4hh9HWdR58\" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key \"zON/CPoDnIgHvMure4hh9HWdR58\" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat com.facebook.android.Facebook.authorizeCallback(Facebook.java:503)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat ti.modules.titanium.facebook.FacebookModule$4.onResult(FacebookModule.java:397)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:522)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.Activity.dispatchActivityResult(Activity.java:3988)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.ActivityThread.deliverResults(ActivityThread.java:2666)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.ActivityThread.handleSendResult(ActivityThread.java:2712)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.ActivityThread.access$2000(ActivityThread.java:124)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1004)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.os.Looper.loop(Looper.java:130)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat android.app.ActivityThread.main(ActivityThread.java:3821)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat java.lang.reflect.Method.invoke(Method.java:507)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: \tat dalvik.system.NativeStart.main(Native Method)\r\n07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [3,424633] onAuthFail: invalid_key:Android key mismatch. Your key \"zON/CPoDnIgHvMure4hh9HWdR58\" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers\r\n{code}\r\n\r\nSteps to reproduce:\r\n1) Install the KS from 2.1.X branch\r\n2) Navigate to Mashups > Facebook\r\n3) Monitor log cat\r\n4) Attempt to login with \"force dialog\" off\r\n\r\nResult:\r\nFailure to log in\r\n\r\nExpected:\r\nThe ability to log in successfully", "attachment": [], "flagged": false, "summary": "KitchenSink: Facebook - Login failures", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.1.1.v20120723111609\r\nTitanium Studio: 2.1.1.201207171343\r\nDroid 3 (2.3.4)\r\nDroid (2.2.3)", "comment": { "comments": [ { "id": "209009", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional note. I was unable to determine if this is a regression, as the API has changed since our last SDK release.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T16:27:32.000+0000", "updated": "2012-07-23T16:27:32.000+0000" }, { "id": "209201", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue happened on Droid which is shown in the first log is because the network connection failed.\r\nThe issue happened on Droid 3 which is shown in the second log is because of an invalid key hash (facebook doc is [here|http://developers.facebook.com/docs/mobile/android/build/#register]).", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T14:14:30.000+0000", "updated": "2012-07-24T14:14:30.000+0000" }, { "id": "209219", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator-developer-relations/KitchenSink/pull/7", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T16:03:16.000+0000", "updated": "2012-07-24T16:03:16.000+0000" }, { "id": "210799", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.1.1.v20120727140110", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T13:04:02.000+0000", "updated": "2012-07-31T13:04:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }