Facebook Signed Request Partial Response

I'm using the Facebook PHP SDK to decode a signed request (provided by the JS SDK). The decoded response is sending back the algorithm, code, issued_at timestamp, and user id. In the past, I've been able to pull additional fields from the request (app_data, page and liked boolean), in additional to many more as defined on the Facebook documentation page:

https://developers.facebook.com/docs/authentication/signed_request/

Is there any reason that I wouldn't be able to access these additional fields? The application is installed, and living inside of a page tab and I cannot see any reason as to why it wouldn't provide me with more fields, specifically app_data and page.

I've also tried decoding the signed request using the example at the link above, and still receive the same response.

http://cl.ly/image/1p0n1S3S0y0M


I'm using the Facebook PHP SDK to decode a signed request (provided by the JS SDK).

That means a signed_request you got from FB.login or FB.getLoginStatus, I suppose? You will only get the data that's described here from one of those, https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/

The other info you mentioned, page id, whether the user liked the page or not, etc., is only available in the signed_request that Facebook posts to your app on initial load.

链接地址: http://www.djcxy.com/p/54110.html

上一篇: Facebook签署的请求不提供所有信息

下一篇: Facebook签署了请求部分响应