{"action":"created","issue":{"url":"https://api.github.com/repos/Kdyby/Facebook/issues/29","labels_url":"https://api.github.com/repos/Kdyby/Facebook/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Kdyby/Facebook/issues/29/comments","events_url":"https://api.github.com/repos/Kdyby/Facebook/issues/29/events","html_url":"https://github.com/Kdyby/Facebook/issues/29","id":56365856,"number":29,"title":"getPermissions() is returning only one permission","user":{"login":"zaxxx","id":7381443,"avatar_url":"https://avatars.githubusercontent.com/u/7381443?v=3","gravatar_id":"","url":"https://api.github.com/users/zaxxx","html_url":"https://github.com/zaxxx","followers_url":"https://api.github.com/users/zaxxx/followers","following_url":"https://api.github.com/users/zaxxx/following{/other_user}","gists_url":"https://api.github.com/users/zaxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaxxx/subscriptions","organizations_url":"https://api.github.com/users/zaxxx/orgs","repos_url":"https://api.github.com/users/zaxxx/repos","events_url":"https://api.github.com/users/zaxxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaxxx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kdyby/Facebook/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-03T11:30:49Z","updated_at":"2015-02-11T19:54:11Z","closed_at":null,"body":"Is there any reason for Profile::getPermissions() to return only one permission?\r\n\r\nDumping $response in the method shows two granted permissions (I ask for e-mail in my app), but for some reason the method returns $response->data[0], which usually returns \"public_profile\" (which is always granted), making it pretty useless for actually checking permissions. No idea why would anyone want that... Is that intended behavior?\r\n\r\nPassing ['email'] as param didn't help, but that just could be my lack of FB API knowledge, but even if that worked - I wouldn't want to call api many times to check permissions one by one, because... you know."},"comment":{"url":"https://api.github.com/repos/Kdyby/Facebook/issues/comments/73952088","html_url":"https://github.com/Kdyby/Facebook/issues/29#issuecomment-73952088","issue_url":"https://api.github.com/repos/Kdyby/Facebook/issues/29","id":73952088,"user":{"login":"fprochazka","id":158625,"avatar_url":"https://avatars.githubusercontent.com/u/158625?v=3","gravatar_id":"","url":"https://api.github.com/users/fprochazka","html_url":"https://github.com/fprochazka","followers_url":"https://api.github.com/users/fprochazka/followers","following_url":"https://api.github.com/users/fprochazka/following{/other_user}","gists_url":"https://api.github.com/users/fprochazka/gists{/gist_id}","starred_url":"https://api.github.com/users/fprochazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fprochazka/subscriptions","organizations_url":"https://api.github.com/users/fprochazka/orgs","repos_url":"https://api.github.com/users/fprochazka/repos","events_url":"https://api.github.com/users/fprochazka/events{/privacy}","received_events_url":"https://api.github.com/users/fprochazka/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T19:54:11Z","updated_at":"2015-02-11T19:54:11Z","body":"@zaxxx I would apreciate if you at least opened an issue, instead of just throwing the lib away and not telling anybody why."}}