{ "id": "147997", "key": "TIMOB-19046", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-01-19T22:12:57.000+0000", "created": "2015-05-20T08:41:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "ios", "regression" ], "versions": [], "issuelinks": [ { "id": "49288", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151485", "key": "TIMOB-19577", "fields": { "summary": "Android: Update Facebook Module to support Facebook SDK 4.7.0", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-01-19T22:13:06.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": "I have just started working with Appcelerator Studio. But when I try to use the new facebook sdk 4.0.3 I no longer use the follow request:\r\n\r\n{code:java}\r\nfacebook.requestWithGraphPath('xeniagympalestra/albums? fields=id,name,cover_photo,count&format=json', {}, 'GET', function(e) {\r\n\tif (e.success) {\r\n\t\tvar result = JSON.parse(e.result);\r\n{code}\r\nI have made the following changes, found in the documentation of the module Facebook in Appcelerator documentation:\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook\r\n\r\n1) Add \r\n\r\n{code:java}\r\n\r\n\r\n{code}\r\n\r\nin tiapp.xml file\r\n\r\n2) Add\r\n{code:java}\r\n\r\n\r\n\r\n1615395XXXXXXXXXX\r\n\r\n{code}\r\n\r\nin platform/android/res/values/strings.xml file\r\n3) Add\r\n{code:java}\r\nvar facebook = Alloy.Globals.Facebook;\r\n\r\n$.index.fbProxy = facebook.createActivityWorker({\r\n\tlifecycleContainer : $.index\r\n});\r\n{code}\r\n\r\nin index.js file\r\n4) Add\r\n{code:java}\r\nvar facebook = Alloy.Globals.Facebook;\r\nfacebook.permissions = ['read_stream'];\r\n{code}\r\n\r\nBut the result are these errors:\r\n{code:java}\r\nBad request, contact the developer and log a bug\r\n{code}\r\n\r\nfor android platform\r\n{code:java}\r\nFBSDKLog: Error for request to endpoint 'xeniagympalestra/albums?fields=id,name,cover_photo,count&format=json': An open FBSession must be specified for calls to this endpoint.\r\n{code}\r\n\r\nfor iOS platform\r\n\r\nThe same request was working with the facebook module ver 3.x.x", "attachment": [], "flagged": false, "summary": "Android: error with requestWithGraphPath and facebook sdk 4.0.3", "creator": { "name": "alexgalvagno", "key": "alexgalvagno", "displayName": "Alessandro Galvagno", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "alexgalvagno", "key": "alexgalvagno", "displayName": "Alessandro Galvagno", "active": true, "timeZone": "Europe/Rome" }, "environment": "Titanium CLI\r\nCLI Version = 4.0.0-beta8\r\n\r\nTitanium SDK\r\nSDK Version = 4.0.0.RC5\r\n\r\nFacebook modules ver. 4.0.0", "closedSprints": [ { "id": 503, "state": "closed", "name": "2015 Sprint 21 SDK", "startDate": "2015-10-10T00:32:18.011Z", "endDate": "2015-10-24T00:32:00.000Z", "completeDate": "2015-10-26T02:20:47.579Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "355080", "author": { "name": "evil_dr_fish", "key": "evil_dr_fish", "displayName": "Robin Williams", "active": true, "timeZone": "Europe/London" }, "body": "Your syntax is incorrect. From the module's documentation:\r\n\r\nfb.requestWithGraphPath('me', {}, 'GET', function(e) {\r\n if (e.success) {\r\n alert(e.result);\r\n } else if (e.error) {\r\n alert(e.error);\r\n } else {\r\n alert('Unknown response');\r\n }\r\n});\r\n\r\n\r\nSo I think your request ought to be formatted something like:\r\n\r\nfacebook.requestWithGraphPath('xeniagympalestra/albums', {fields: 'id,name,cover_photo,count'}, 'GET', function(e) {\r\n\tif (e.success) {", "updateAuthor": { "name": "evil_dr_fish", "key": "evil_dr_fish", "displayName": "Robin Williams", "active": true, "timeZone": "Europe/London" }, "created": "2015-06-14T08:39:07.000+0000", "updated": "2015-06-14T08:39:07.000+0000" }, { "id": "355459", "author": { "name": "pravipravi", "key": "pravipravi", "displayName": "Praveen Kodakkad", "active": true, "timeZone": "America/Adak" }, "body": "I am also experiencing the Same issue with Facebook Login App. The application is not Frozen state as without resolving this issue I cannot log in to the App and hence Whole app development in hang state. \r\n\r\nI tried in iOs 8+ devices.\r\nTitanium SDK Version 4.0\r\nAppcelerator Studio\r\n\r\nI am able to login for the first time. Then I exit app, to background and then coming to foreground, it checks\r\n{code:java}\r\n if(fb.loggedin) {code}\r\nThen decides to call \r\n\r\n{code:java}\r\nfb.requestWithGraph('me',{},function(e){\r\n//Code to write\r\n}{code}\r\n\r\nThis is failing with an error \r\n\r\nFBSDKLog: Error for request to end point 'me': An open FBSession must be specified for calls to this endpoint.\r\n\r\nCan I know when and in which version this issue will be fixed?\r\n", "updateAuthor": { "name": "pravipravi", "key": "pravipravi", "displayName": "Praveen Kodakkad", "active": true, "timeZone": "America/Adak" }, "created": "2015-06-18T10:43:24.000+0000", "updated": "2015-06-18T10:45:10.000+0000" }, { "id": "355460", "author": { "name": "evil_dr_fish", "key": "evil_dr_fish", "displayName": "Robin Williams", "active": true, "timeZone": "Europe/London" }, "body": "I've been getting that error too! iOS for certain... Haven't checked android yet", "updateAuthor": { "name": "evil_dr_fish", "key": "evil_dr_fish", "displayName": "Robin Williams", "active": true, "timeZone": "Europe/London" }, "created": "2015-06-18T12:01:45.000+0000", "updated": "2015-06-18T12:01:45.000+0000" }, { "id": "356003", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We're running identical code iOS and Android to view a photo gallery. Using 4.0.0.GA SDK\r\n\r\nOn iOS it works perfectly.\r\n\r\nOn Android 5.1 we're getting \"Bad request, contact the developer and log a bug\" also.\r\n\r\nWe login successfully but the requestWithGraphPath fails!\r\n\r\n{panel:title=Console Log}\r\n[INFO] : login from uid: 10206542681741842, name: Kon Lovett\r\n[ERROR] : TiFacebookModule: (KrollRuntimeThread) [90,49768] requestWithGraphPath callback error\r\n[ERROR] : TiFacebookModule: (KrollRuntimeThread) [0,49768] error userActionMessageId: 0\r\n[ERROR] : TiFacebookModule: (KrollRuntimeThread) [0,49768] should notify user: false\r\n[ERROR] : TiFacebookModule: (KrollRuntimeThread) [0,49768] error message: An access token is required to request this resource.\r\n[ERROR] : Facebook gallery: Bad request, contact the developer and log a bug\r\n{panel}\r\n\r\n", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-25T23:10:39.000+0000", "updated": "2015-06-25T23:48:17.000+0000" }, { "id": "356010", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So here's the problem\r\n\r\nOn iOS say you use /34753323422/photos?limit=50 as a graph endpoint and that works fine.\r\n\r\nBut on Android you have to move *limit=50* and any other parameters into the params dictionary - the second parameter to requestWithGraphPath.\r\n\r\nOnce we did that, it worked on Android fine.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-26T00:16:25.000+0000", "updated": "2015-06-26T00:16:25.000+0000" }, { "id": "356408", "author": { "name": "alexgalvagno", "key": "alexgalvagno", "displayName": "Alessandro Galvagno", "active": true, "timeZone": "Europe/Rome" }, "body": "Hi Robin Williams, \r\nI have also tried:\r\n\r\nfacebook.requestWithGraphPath('xeniagympalestra/albums', {\r\nfields: 'id,name,cover_photo,count'\r\n}, 'GET', function(e) {\r\nif (e.success) {\r\n.....\r\n}\r\n\r\nbut the result is the same, an error.\r\n{code:java}\r\nerror message: com.facebook.FacebookException: Session provided to a Request in un-opened state.\r\n{code}\r\n", "updateAuthor": { "name": "alexgalvagno", "key": "alexgalvagno", "displayName": "Alessandro Galvagno", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-06-30T14:44:06.000+0000", "updated": "2015-06-30T14:45:21.000+0000" }, { "id": "366361", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-09T09:08:34.000+0000", "updated": "2015-10-09T09:08:34.000+0000" }, { "id": "367526", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-22T09:24:56.000+0000", "updated": "2015-10-22T09:25:16.000+0000" }, { "id": "374870", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing in accordance to resolution of the ticket.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-19T21:57:29.000+0000", "updated": "2016-01-19T21:57:29.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }