Reputation: 2465
I'm trying to check whether a user has liked my app using this code:
$signed_request = $facebook->getSignedRequest();
$liked = $signed_request['page']['liked'];
echo($liked);
But it doesn't return anything. On the other hand, if I do:
$signed_request = $facebook->getSignedRequest();
$expires = $signed_request['expires'];
echo($expires);
it does return an appropriate value. Is this something to do with permissions?
thanks
Upvotes: 0
Views: 595
Reputation: 20753
This field will no longer be included for any app created after the launch of v2.1 (August 7th, 2014), and will be permanently set to true for all other apps on November 5th, 2014.
See the reference: https://developers.facebook.com/docs/reference/login/signed-request
Upvotes: 0
Reputation: 3094
You can get page info parameters with signed_request only if it is a page tab application. If it is a canvas app, you can get like info with a FQL query:
SELECT uid FROM page_fan WHERE page_id="PAGE_ID" and uid = me()
Upvotes: 1