{"action":"created","issue":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/26","repository_url":"https://api.github.com/repos/cardcorp/fbRads","labels_url":"https://api.github.com/repos/cardcorp/fbRads/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/cardcorp/fbRads/issues/26/comments","events_url":"https://api.github.com/repos/cardcorp/fbRads/issues/26/events","html_url":"https://github.com/cardcorp/fbRads/issues/26","id":168244874,"number":26,"title":"Identify all accounts for business manager","user":{"login":"danwwilson","id":7199304,"avatar_url":"https://avatars.githubusercontent.com/u/7199304?v=3","gravatar_id":"","url":"https://api.github.com/users/danwwilson","html_url":"https://github.com/danwwilson","followers_url":"https://api.github.com/users/danwwilson/followers","following_url":"https://api.github.com/users/danwwilson/following{/other_user}","gists_url":"https://api.github.com/users/danwwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/danwwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danwwilson/subscriptions","organizations_url":"https://api.github.com/users/danwwilson/orgs","repos_url":"https://api.github.com/users/danwwilson/repos","events_url":"https://api.github.com/users/danwwilson/events{/privacy}","received_events_url":"https://api.github.com/users/danwwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-29T03:43:00Z","updated_at":"2016-08-02T04:06:20Z","closed_at":null,"body":"For people who manage multiple accounts, is there a way to identify all the account IDs based on a business manager ID?\r\n\r\nI've changed the scope of access to align with version 2.7 scopes for `business_management` as identified [here](https://developers.facebook.com/docs/marketing-api/businessmanager/v2.7)\r\n\r\n``` {r}\r\ntkn <- oauth2.0_token(\r\n  oauth_endpoints('facebook'), app, scope = 'business_management',\r\n  type  = 'application/x-www-form-urlencoded', cache = FALSE)\r\n```\r\n\r\nThere is more documentation on how to GET all the accounts that the business manager owns on [this](https://developers.facebook.com/docs/marketing-api/businessmanager/assets/v2.7) page at the heading  *Viewing business manager owned ad accounts*\r\n\r\nMaybe this could be an enhancement. I'm not too sure how to go about creating this as a function"},"comment":{"url":"https://api.github.com/repos/cardcorp/fbRads/issues/comments/236791055","html_url":"https://github.com/cardcorp/fbRads/issues/26#issuecomment-236791055","issue_url":"https://api.github.com/repos/cardcorp/fbRads/issues/26","id":236791055,"user":{"login":"danwwilson","id":7199304,"avatar_url":"https://avatars.githubusercontent.com/u/7199304?v=3","gravatar_id":"","url":"https://api.github.com/users/danwwilson","html_url":"https://github.com/danwwilson","followers_url":"https://api.github.com/users/danwwilson/followers","following_url":"https://api.github.com/users/danwwilson/following{/other_user}","gists_url":"https://api.github.com/users/danwwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/danwwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danwwilson/subscriptions","organizations_url":"https://api.github.com/users/danwwilson/orgs","repos_url":"https://api.github.com/users/danwwilson/repos","events_url":"https://api.github.com/users/danwwilson/events{/privacy}","received_events_url":"https://api.github.com/users/danwwilson/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T04:06:20Z","updated_at":"2016-08-02T04:06:20Z","body":"Super! Looking forward to give it a test."}}
{"actor":{"display_login":"danwwilson"}}