{"action":"created","issue":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/28","repository_url":"https://api.github.com/repos/cardcorp/fbRads","labels_url":"https://api.github.com/repos/cardcorp/fbRads/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/cardcorp/fbRads/issues/28/comments","events_url":"https://api.github.com/repos/cardcorp/fbRads/issues/28/events","html_url":"https://github.com/cardcorp/fbRads/issues/28","id":169035158,"number":28,"title":"Still Getting  Bad Request (HTTP 400). Failed to get an access token Despite 2.6 Update","user":{"login":"dkomd","id":20806830,"avatar_url":"https://avatars.githubusercontent.com/u/20806830?v=3","gravatar_id":"","url":"https://api.github.com/users/dkomd","html_url":"https://github.com/dkomd","followers_url":"https://api.github.com/users/dkomd/followers","following_url":"https://api.github.com/users/dkomd/following{/other_user}","gists_url":"https://api.github.com/users/dkomd/gists{/gist_id}","starred_url":"https://api.github.com/users/dkomd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkomd/subscriptions","organizations_url":"https://api.github.com/users/dkomd/orgs","repos_url":"https://api.github.com/users/dkomd/repos","events_url":"https://api.github.com/users/dkomd/events{/privacy}","received_events_url":"https://api.github.com/users/dkomd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T02:45:43Z","updated_at":"2016-08-09T15:00:02Z","closed_at":null,"body":"Hi,\r\nI am using the following code which is the updated code for 2.6V..\r\n\r\n```\r\napp <-  oauth_app('facebook', 'XXXX', 'XXXXX')\r\n\r\nSys.setenv('HTTR_SERVER_PORT' = '1410/')\r\ntkn <- oauth2.0_token(oauth_endpoints('facebook'), app, scope = 'ads_management',\r\n    type  = 'application/x-www-form-urlencoded', cache = FALSE)\r\n\r\ntkn <- tkn$credentials$access_token \r\n\r\nfbad_init(accountid = accountid, token = tkn, version = '2.6')\r\n\r\nfbad_list_ad(fields = c('name', 'effective_status'))\r\nfbad_list_ad(statuses = 'ACTIVE', fields = 'name')\r\n```\r\n\r\nHowever, I still get the same error:\r\n\r\n> Waiting for authentication in browser...\r\n> Press Esc/Ctrl + C to abort\r\n> Authentication complete.\r\n> Error in init_oauth2.0(self$endpoint, self$app, scope = self$params$scope,  : \r\n>   Bad Request (HTTP 400). Failed to get an access token.\r\n\r\n> Error: object 'tkn' not found\r\n\r\nAny thoughts/ideas on why is this happening?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/comments/238581213","html_url":"https://github.com/cardcorp/fbRads/issues/28#issuecomment-238581213","issue_url":"https://api.github.com/repos/cardcorp/fbRads/issues/28","id":238581213,"user":{"login":"daroczig","id":495736,"avatar_url":"https://avatars.githubusercontent.com/u/495736?v=3","gravatar_id":"","url":"https://api.github.com/users/daroczig","html_url":"https://github.com/daroczig","followers_url":"https://api.github.com/users/daroczig/followers","following_url":"https://api.github.com/users/daroczig/following{/other_user}","gists_url":"https://api.github.com/users/daroczig/gists{/gist_id}","starred_url":"https://api.github.com/users/daroczig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daroczig/subscriptions","organizations_url":"https://api.github.com/users/daroczig/orgs","repos_url":"https://api.github.com/users/daroczig/repos","events_url":"https://api.github.com/users/daroczig/events{/privacy}","received_events_url":"https://api.github.com/users/daroczig/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:00:02Z","updated_at":"2016-08-09T15:00:02Z","body":"Thanks, let me know how it works. If still having issues, pls share your `sessionInfo` and I will try to replicate the issue."}}
{"actor":{"display_login":"daroczig"}}