{ "id": "105993", "key": "TIMOB-11962", "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": "15079", "description": "2013 Sprint 02 API", "name": "2013 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-01-17T15:42:24.000+0000", "created": "2012-12-05T13:06:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-27T22:28:26.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h1. Problem description\r\nWhen trying to post something on the user's timeline using requestWithGraphPath, the call only works the first time (after authorize has been called). The following times, this error is returned:\r\n\r\n{code}\r\n{\"type\":\"result\",\"source\":{},\"error\":\"The operation couldn’t be completed. (facebookErrDomain error 10000.)\",\"path\":\"me/feed\",\"success\":false,\"graph\":true}\r\n{code}\r\n\r\nh1. Steps to reproduce\r\nUse the following code to verify the problem (change [APPID]):\r\n\r\n{code}\r\nTi.Facebook.appid = '[APPID]';\r\nTi.Facebook.permissions = ['publish_stream'];\r\n\r\nvar win = Ti.UI.createWindow({\r\n background: 'white',\r\n layout: 'vertical'\r\n});\r\n\r\nvar button = Ti.UI.createButton({ title : 'fb login' });\r\nbutton.addEventListener('click', function() {\r\n Ti.Facebook.authorize();\r\n});\r\n\r\nvar post = Ti.UI.createButton({ title : 'send post' });\r\npost.addEventListener('click', postFeed);\r\n\r\nTi.Facebook.addEventListener('login', function(e) {\r\n if (!e.success) {\r\n alert('fb not logged in');\r\n }\r\n});\r\n\r\nwin.add(button);\r\nwin.add(post);\r\n\r\nfunction postFeed() {\r\n var fbData = {\r\n caption : \"Test report to FB\",\r\n message : \"text to send to FB timeline from test iPhone app\"\r\n };\r\n Ti.Facebook.requestWithGraphPath('me/feed', fbData, 'POST', function(ef) {\r\n Ti.API.info(JSON.stringify(ef));\r\n if (ef.error) {\r\n alert(ef.error);\r\n } else {\r\n alert(\"upload to FB successful!\");\r\n }\r\n });\r\n}\r\n\r\nwin.open();\r\n{code}\r\n\r\nFirst time, clicking the send button (after login) works fine; then, it will never work again. Note that clicking again the login button won't fire the 'login' event anymore as well.", "attachment": [], "flagged": false, "summary": "iOS: Facebook requestWithGraphPath fails the second time a post is sent to the user's timeline", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 6\r\nSDK 2.1.4\r\n", "comment": { "comments": [ { "id": "234818", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is the full error coming from facebook.\n\nError Domain=facebookErrDomain Code=10000 \"The operation couldn’t be completed. (facebookErrDomain error 10000.)\" UserInfo=0xa697b00 {error={\n code = 506;\n \"error_data\" = {\n kError = 1455006;\n };\n message = \"(#506) Duplicate status message\";\n type = OAuthException;\n}}\n\n(#506) Duplicate status message means that you have posted a message in a small period of time from a previous one\n\nSwitched the sample to change the message every time and the error went away. \n\nGoing to mark this as wont fix.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T15:41:47.000+0000", "updated": "2013-01-17T15:41:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }