{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/277","labels_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/277/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/277/events","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/277","id":49708807,"number":277,"title":"getRawSignedRequestFromGet ?","user":{"login":"ManuelHanisch","id":9884852,"avatar_url":"https://avatars.githubusercontent.com/u/9884852?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelHanisch","html_url":"https://github.com/ManuelHanisch","followers_url":"https://api.github.com/users/ManuelHanisch/followers","following_url":"https://api.github.com/users/ManuelHanisch/following{/other_user}","gists_url":"https://api.github.com/users/ManuelHanisch/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelHanisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelHanisch/subscriptions","organizations_url":"https://api.github.com/users/ManuelHanisch/orgs","repos_url":"https://api.github.com/users/ManuelHanisch/repos","events_url":"https://api.github.com/users/ManuelHanisch/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelHanisch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-21T15:30:43Z","updated_at":"2015-01-28T23:58:57Z","closed_at":null,"body":"\r\nHello guys,\r\ni am rewriting my app to use your PHP SDK. \r\nWhen i am sending data with POST, unfortunatelly my app appends the signed_request to the URL in a lot of cases. \r\n\r\nNow, the FacebookCanvasLoginHelper::getRawSignedRequest function only checks \r\nfor POST data\r\n\r\n$rawSignedRequest = $this->getRawSignedRequestFromPost(); \r\n\r\nThe function getRawSignedRequestFromGet() exists, but is never used inside the SDK.\r\n\r\nOf course i can put my signed_request into the POST variable and problem is solved.\r\nBut i want to ask if its possible to add this into the SDK ?  like this:\r\n\r\n$rawSignedRequest = $this->getRawSignedRequestFromPost(); \r\nif(!isset($rawSignedRequest)) $rawSignedRequest = $this->getRawSignedRequestFromGet();\r\n\r\nor do i miss something? \r\n\r\nbest regards, \r\nManuel\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/comments/71942887","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/277#issuecomment-71942887","issue_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/277","id":71942887,"user":{"login":"SammyK","id":578780,"avatar_url":"https://avatars.githubusercontent.com/u/578780?v=3","gravatar_id":"","url":"https://api.github.com/users/SammyK","html_url":"https://github.com/SammyK","followers_url":"https://api.github.com/users/SammyK/followers","following_url":"https://api.github.com/users/SammyK/following{/other_user}","gists_url":"https://api.github.com/users/SammyK/gists{/gist_id}","starred_url":"https://api.github.com/users/SammyK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SammyK/subscriptions","organizations_url":"https://api.github.com/users/SammyK/orgs","repos_url":"https://api.github.com/users/SammyK/repos","events_url":"https://api.github.com/users/SammyK/events{/privacy}","received_events_url":"https://api.github.com/users/SammyK/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T23:58:57Z","updated_at":"2015-01-28T23:58:57Z","body":"Hey @ManuelHanisch! This method will be completely removed in the next version per #336.\r\n\r\nIf you need to decode a signed request, you can just use the `Facebook\\SignedRequest` entity directly in the next version release:\r\n\r\n```php\r\n$app = $fb->getApp();\r\n$sr = new Facebook\\SignedRequest($app, $_GET['signed_request']);\r\n```"}}