{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3742","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3742/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3742/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3742/events","html_url":"https://github.com/meteor/meteor/issues/3742","id":57828528,"number":3742,"title":"accounts-facebook Error: This authorization code has been used.","user":{"login":"arnonate","id":880025,"avatar_url":"https://avatars.githubusercontent.com/u/880025?v=3","gravatar_id":"","url":"https://api.github.com/users/arnonate","html_url":"https://github.com/arnonate","followers_url":"https://api.github.com/users/arnonate/followers","following_url":"https://api.github.com/users/arnonate/following{/other_user}","gists_url":"https://api.github.com/users/arnonate/gists{/gist_id}","starred_url":"https://api.github.com/users/arnonate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnonate/subscriptions","organizations_url":"https://api.github.com/users/arnonate/orgs","repos_url":"https://api.github.com/users/arnonate/repos","events_url":"https://api.github.com/users/arnonate/events{/privacy}","received_events_url":"https://api.github.com/users/arnonate/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Accounts:OAuth","name":"Project:Accounts:OAuth","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-02-16T17:02:14Z","updated_at":"2016-03-31T19:54:23Z","closed_at":null,"body":"***5 Upvotes*** I have a current live Meteor app that leverages accounts-facebook for user accounts. I have an issue where a specific user is not able to sign in. The logs show this error...\r\n\r\n{\"line\":\"398\",\"file\":\"oauth_server.js\",\"message\":\"Error in OAuth Server: Failed to complete OAuth handshake with Facebook. failed [400] {\\\"error\\\":{\\\"message\\\":\\\"This authorization code has been used.\\\",\\\"type\\\":\\\"OAuthException\\\",\\\"code\\\":100}}\",\"time\":{\"$date\":1424105015737},\"level\":\"warn\"}\r\n\r\nThe following is my accounts creation code...\r\n\r\n```\r\n// first, remove configuration entry in case service is already configured\r\nServiceConfiguration.configurations.remove({\r\n    service: \"facebook\"\r\n});\r\n\r\nServiceConfiguration.configurations.insert({\r\n    service: \"facebook\",\r\n    appId: \"<id>\",\r\n    secret: \"<secret>\"\r\n});\r\n\r\nAccounts.onCreateUser(function(options, user) {\r\n    // We still want the default hook's 'profile' behavior.\r\n    if (options.profile) {\r\n        user.profile = options.profile;\r\n        user.profile.memberSince = new Date();\r\n\r\n        // Copy data from Facebook to user object\r\n        user.profile.facebookId = user.services.facebook.id;\r\n        user.profile.firstName = user.services.facebook.first_name;\r\n        user.profile.email = user.services.facebook.email;\r\n        user.profile.link = user.services.facebook.link;\r\n    }\r\n\r\n    return user;\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/204100510","html_url":"https://github.com/meteor/meteor/issues/3742#issuecomment-204100510","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3742","id":204100510,"user":{"login":"ryanmadden","id":7409814,"avatar_url":"https://avatars.githubusercontent.com/u/7409814?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmadden","html_url":"https://github.com/ryanmadden","followers_url":"https://api.github.com/users/ryanmadden/followers","following_url":"https://api.github.com/users/ryanmadden/following{/other_user}","gists_url":"https://api.github.com/users/ryanmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmadden/subscriptions","organizations_url":"https://api.github.com/users/ryanmadden/orgs","repos_url":"https://api.github.com/users/ryanmadden/repos","events_url":"https://api.github.com/users/ryanmadden/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmadden/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T19:54:22Z","updated_at":"2016-03-31T19:54:22Z","body":"+1"}}