{ "id": "133150", "key": "AC-1677", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-07-21T21:38:12.000+0000", "created": "2014-07-14T21:31:16.000+0000", "labels": [ "android", "facebook" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:38: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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "this is the error that I get when I tried to log in on Android\r\n\r\n\r\n[ERROR] : FacebookModule: (main) [38143,71824] LoginDialogListener onFacebookError: The connection to the server was unsuccessful.\r\n[ERROR] : FacebookModule: com.facebook.android.FacebookError: The connection to the server was unsuccessful.\r\n[ERROR] : FacebookModule: at com.facebook.android.Facebook.onSessionCallback(Facebook.java:433)\r\n[ERROR] : FacebookModule: at com.facebook.android.Facebook.access$000(Facebook.java:97)\r\n[ERROR] : FacebookModule: at com.facebook.android.Facebook$2.call(Facebook.java:379)\r\n[ERROR] : FacebookModule: at com.facebook.Session$3$1.run(Session.java:1239)\r\n[ERROR] : FacebookModule: at android.os.Handler.handleCallback(Handler.java:587)\r\n[ERROR] : FacebookModule: at android.os.Handler.dispatchMessage(Handler.java:92)\r\n[ERROR] : FacebookModule: at android.os.Looper.loop(Looper.java:123)\r\n[ERROR] : FacebookModule: at android.app.ActivityThread.main(ActivityThread.java:3687)\r\n[ERROR] : FacebookModule: at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : FacebookModule: at java.lang.reflect.Method.invoke(Method.java:507)\r\n[ERROR] : FacebookModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)\r\n[ERROR] : FacebookModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\n[ERROR] : FacebookModule: at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR] : FacebookModule: (main) [4,71828] onAuthFail: The connection to the server was unsuccessful.\r\n\r\n\r\n\r\nand this is the code that I use to try to log in\r\n\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar fb = require('facebook');\r\nfb.appid = 755377651155999;\r\nfb.permissions = ['user_events', 'user_friends', 'friends_events', 'rsvp_event' ];\r\nfb.addEventListener('login', function(e) {\r\n if (e.success) {\r\n alert('Logged in');\r\n }\r\n});\r\nfb.addEventListener('logout', function(e) {\r\n alert('Logged out');\r\n});\r\n \r\n// Add the button. Note that it doesn't need a click event listener.\r\nwin.add(fb.createLoginButton({\r\n top : 50,\r\n style : fb.BUTTON_STYLE_WIDE\r\n}));\r\nwin.open();", "attachment": [], "flagged": false, "summary": "Facebook's Module don't work anymore for Android!", "creator": { "name": "DHennrich", "key": "dhennrich", "displayName": "Douglas Hennrich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "DHennrich", "key": "dhennrich", "displayName": "Douglas Hennrich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "314093", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue with our sample code. its working well as we expected. It's not a SDK bug. \r\n\r\nh5. Testing Environment:\r\nTitanium SDK: 3.2.3.GA and 3.3.0.RC\r\nTitanium CLI: 3.2.3\r\nOS X Version: 10.9.3\r\nAndroid API Level: 17 and 19\r\n\r\nh5. Test Code:\r\n \r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor : 'white'\r\n});\r\nvar fb = require('facebook');\r\nfb.appid = 755377651155999;\r\nfb.permissions = ['user_events', 'user_friends', 'friends_events', 'rsvp_event'];\r\nfb.addEventListener('login', function(e) {\r\nif (e.success) {\r\nalert('Logged in');\r\n}\r\n});\r\nfb.addEventListener('logout', function(e) {\r\nalert('Logged out');\r\n});\r\n \r\n// Add the button. Note that it doesn't need a click event listener.\r\nwin.add(fb.createLoginButton({\r\ntop : 50,\r\nstyle : fb.BUTTON_STYLE_WIDE\r\n}));\r\nwin.open();\r\n \r\nh5. STEPS TO REPRODUCE\r\n \r\n- Create a simple project.\r\n- Update this code in app.js\r\n- Add Facebook module in tiapp.xml \r\n- Run this with testing environment\r\n\r\nh5. TESTING RESULT\r\nIts working perfectly. There is no any kinds of error.\r\n\r\nThanks ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-15T09:00:41.000+0000", "updated": "2014-07-21T21:37:27.000+0000" }, { "id": "314953", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm also experiencing the same problem. Compiling my Android apps with 3.30GA SDK on an Android 4.4.2 HTC One they get stuck on the splash screen.\r\n\r\nI'm getting this stack trace as my app gets stuck apparently loading modules.\r\n\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): Trying to getInterface() threw security exception\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): java.lang.SecurityException: You do not have permssion to access this service: uid 10053 does not have com.facebook.system.permission.FACEBOOK_SYSTEM_DASH_SERVICE.\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat android.os.Parcel.readException(Parcel.java:1474)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat android.os.Parcel.readException(Parcel.java:1428)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.ansible.oem.method.FacebookMethod$Client.a(FacebookMethod.java:88)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.ansible.oem.FacebookServiceClient.a(FacebookServiceClient.java:31)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.dash.common.service.FacebookServiceHelper.a(FacebookServiceHelper.java:194)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.dash.common.service.FacebookServiceHelper.A_(FacebookServiceHelper.java:50)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.InitializerProfilingUtil.a(InitializerProfilingUtil.java:55)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.impl.FbAppInitializer.a(FbAppInitializer.java:294)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.impl.FbAppInitializer.a(FbAppInitializer.java:260)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.impl.FbAppInitializer.d(FbAppInitializer.java:243)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.impl.FbAppInitializer.a(FbAppInitializer.java:80)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.init.impl.FbAppInitializer$2.run(FbAppInitializer.java:202)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.executors.ConstrainedExecutorService$Worker.run(ConstrainedExecutorService.java:279)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat com.facebook.common.executors.NamedThreadFactory$1.run(NamedThreadFactory.java:35)\r\n07-19 20:44:35.300: W/fb4a(:dash):FacebookServiceHelper(16686): \tat java.lang.Thread.run(Thread.java:864)", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-20T04:14:49.000+0000", "updated": "2014-07-20T04:14:49.000+0000" }, { "id": "315125", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-21T21:38:12.000+0000", "updated": "2014-07-21T21:38:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }