facebook like - signedRequest not working for liked field anymore -
while developing facebook apps want fetch liked status of page redirect them accordingly.earlier used following code:
<?php require 'facebook.php'; $app_id = "**************"; $app_secret = "*************************************"; $facebook = new facebook(array( 'appid' => $app_id, 'secret' => $app_secret, 'cookie' => true )); $signed_request = $facebook->getsignedrequest(); $like_status = $signed_request["page"]["liked"]; if($like_status==1) echo "liked"; else echo "not liked"; ?>
but due new policy facebook, in apps developed after 7th aug 2014 cannot page liked status using method. pages.isfan() not working , fql read not last long. there other method it?
https://developers.facebook.com/docs/apps/changelog
fangates dead, don´t work new apps anymore, , there no other way it. forbid them in platform policy (see changelog):
you must not incentivize people use social plugins or page.
that why value in signed_request
removed.
Comments
Post a Comment