{"action":"created","issue":{"url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/148","repository_url":"https://api.github.com/repos/nxtbgthng/OAuth2Client","labels_url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/148/comments","events_url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/148/events","html_url":"https://github.com/nxtbgthng/OAuth2Client/issues/148","id":47869434,"number":148,"title":"Successful login to client, but NULL refresh token on Account?","user":{"login":"darkheartfelt","id":3913923,"avatar_url":"https://avatars.githubusercontent.com/u/3913923?v=3","gravatar_id":"","url":"https://api.github.com/users/darkheartfelt","html_url":"https://github.com/darkheartfelt","followers_url":"https://api.github.com/users/darkheartfelt/followers","following_url":"https://api.github.com/users/darkheartfelt/following{/other_user}","gists_url":"https://api.github.com/users/darkheartfelt/gists{/gist_id}","starred_url":"https://api.github.com/users/darkheartfelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkheartfelt/subscriptions","organizations_url":"https://api.github.com/users/darkheartfelt/orgs","repos_url":"https://api.github.com/users/darkheartfelt/repos","events_url":"https://api.github.com/users/darkheartfelt/events{/privacy}","received_events_url":"https://api.github.com/users/darkheartfelt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-11-05T18:19:38Z","updated_at":"2016-10-19T11:34:34Z","closed_at":null,"body":"hi! what would be a cause of null refresh token? \r\n\r\nI used the sample project for Feedly, which works great and signs into account properly.\r\n\r\nSo then I switched in all my credentials for Instagram.\r\n\r\nMy app requests an Instagram account and issues the success notification.\r\n\r\nProblem is I'm seeing that the readout of my Instagram Account as having  \"refreshToken:(null)\" in the Account object in the success block of \"requestAccessToAccountWithType:\"\r\n\r\nThis is made clear because just as in the Feedly demo project my app uses that account to make a request for the user's Instagram profile - but the request to Instagram is failing here with a 400 error - {\"meta\":{\"error_type\":\"OAuthParameterException\",\"code\":400,\"error_message\":\"Missing client_id or access_token URL parameter.\"}} I assume this is because of the lack of refreshToken?\r\n\r\nHere's what the readout of the account looks like from SUCCESS of requestAccessToAccountWithType:, with asterisks masking private keys:\r\n\r\naccount info : <NXOAuth2Account identifier:'5D***************1' accountType:'Instagram' accessToken:<NXOAuth2Token token:120******************************7 refreshToken:(null) expiresAt:(null) tokenType: Bearer> userData:(null)>"},"comment":{"url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/comments/254787373","html_url":"https://github.com/nxtbgthng/OAuth2Client/issues/148#issuecomment-254787373","issue_url":"https://api.github.com/repos/nxtbgthng/OAuth2Client/issues/148","id":254787373,"user":{"login":"krunalbhavsar","id":16011224,"avatar_url":"https://avatars.githubusercontent.com/u/16011224?v=3","gravatar_id":"","url":"https://api.github.com/users/krunalbhavsar","html_url":"https://github.com/krunalbhavsar","followers_url":"https://api.github.com/users/krunalbhavsar/followers","following_url":"https://api.github.com/users/krunalbhavsar/following{/other_user}","gists_url":"https://api.github.com/users/krunalbhavsar/gists{/gist_id}","starred_url":"https://api.github.com/users/krunalbhavsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krunalbhavsar/subscriptions","organizations_url":"https://api.github.com/users/krunalbhavsar/orgs","repos_url":"https://api.github.com/users/krunalbhavsar/repos","events_url":"https://api.github.com/users/krunalbhavsar/events{/privacy}","received_events_url":"https://api.github.com/users/krunalbhavsar/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T11:34:34Z","updated_at":"2016-10-19T11:34:34Z","body":"I'm facing same issue. (Successful login to client, but NULL refresh token on Account)"}}
{"actor":{"display_login":"krunalbhavsar"}}