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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -