{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/234","repository_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues","labels_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/234/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/234/events","html_url":"https://github.com/driftyco/ionic-cloud-issues/issues/234","id":191860750,"number":234,"title":"500: Internal Server Error with native Facebook Auth","user":{"login":"christianseel","id":482184,"avatar_url":"https://avatars.githubusercontent.com/u/482184?v=3","gravatar_id":"","url":"https://api.github.com/users/christianseel","html_url":"https://github.com/christianseel","followers_url":"https://api.github.com/users/christianseel/followers","following_url":"https://api.github.com/users/christianseel/following{/other_user}","gists_url":"https://api.github.com/users/christianseel/gists{/gist_id}","starred_url":"https://api.github.com/users/christianseel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianseel/subscriptions","organizations_url":"https://api.github.com/users/christianseel/orgs","repos_url":"https://api.github.com/users/christianseel/repos","events_url":"https://api.github.com/users/christianseel/events{/privacy}","received_events_url":"https://api.github.com/users/christianseel/received_events","type":"User","site_admin":false},"labels":[{"id":225586260,"url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"devnetics","id":6577282,"avatar_url":"https://avatars.githubusercontent.com/u/6577282?v=3","gravatar_id":"","url":"https://api.github.com/users/devnetics","html_url":"https://github.com/devnetics","followers_url":"https://api.github.com/users/devnetics/followers","following_url":"https://api.github.com/users/devnetics/following{/other_user}","gists_url":"https://api.github.com/users/devnetics/gists{/gist_id}","starred_url":"https://api.github.com/users/devnetics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnetics/subscriptions","organizations_url":"https://api.github.com/users/devnetics/orgs","repos_url":"https://api.github.com/users/devnetics/repos","events_url":"https://api.github.com/users/devnetics/events{/privacy}","received_events_url":"https://api.github.com/users/devnetics/received_events","type":"User","site_admin":false},"assignees":[{"login":"devnetics","id":6577282,"avatar_url":"https://avatars.githubusercontent.com/u/6577282?v=3","gravatar_id":"","url":"https://api.github.com/users/devnetics","html_url":"https://github.com/devnetics","followers_url":"https://api.github.com/users/devnetics/followers","following_url":"https://api.github.com/users/devnetics/following{/other_user}","gists_url":"https://api.github.com/users/devnetics/gists{/gist_id}","starred_url":"https://api.github.com/users/devnetics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnetics/subscriptions","organizations_url":"https://api.github.com/users/devnetics/orgs","repos_url":"https://api.github.com/users/devnetics/repos","events_url":"https://api.github.com/users/devnetics/events{/privacy}","received_events_url":"https://api.github.com/users/devnetics/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-11-27T13:13:15Z","updated_at":"2016-12-19T19:11:57Z","closed_at":"2016-12-19T19:11:57Z","body":"Hi, I'm getting a `500: Internal Server Error` from `https://api.ionic.io/auth/login/facebook` when requesting any other permission than \"email\".\r\n\r\nRequest header:\r\n```\r\n{\"app_id\":\"bf0af747\",\"access_token\":\"XXX\",\"additional_fields\":[\"user_friends\"],\"flow\":\"native-mobile\"}\r\n```\r\nresults in:\r\n```\r\n{\r\n  \"meta\": {\r\n    \"status\": 500,\r\n    \"request_id\": \"c4d8114a-fc5a-49e0-995f-8aa7a68e66d7\",\r\n    \"version\": \"2.0.0-beta.0\"\r\n  },\r\n  \"error\": {\r\n    \"message\": \"500: Internal Server Error\",\r\n    \"link\": null,\r\n    \"type\": \"InternalServerError\"\r\n  }\r\n}\r\n```\r\n\r\n\r\nwhile\r\n```\r\n{\"app_id\":\"bf0af747\",\"access_token\":\"XXX\",\"additional_fields\":[\"email\"],\"flow\":\"native-mobile\"}\r\n```\r\nworks:\r\n```\r\n{\r\n  \"data\": {\r\n    \"signup\": 0,\r\n    \"app_id\": \"bf0af747\",\r\n    \"token\": \"ZZZ\"\r\n  },\r\n  \"meta\": {\r\n    \"status\": 200,\r\n    \"request_id\": \"71cfc849-8023-4ed1-9a2d-a615cd7c0e83\",\r\n    \"version\": \"2.0.0-beta.0\"\r\n  }\r\n}\r\n```\r\n\r\nI used the facebook auth token debugger to very that the fb auth token has the `user_friends` permission applied.\r\n\r\nSystem information:\r\n```\r\nCordova CLI: 6.4.0\r\nIonic CLI Version: 2.1.13\r\nIonic App Lib Version: 2.1.7\r\nios-deploy version: 1.9.0\r\nios-sim version: 5.0.11\r\nOS: macOS Sierra\r\nNode Version: v6.9.1\r\nXcode version: Xcode 8.1 Build version 8B62\r\n```"}}
{"actor":{"display_login":"devnetics"}}