facebook $facebook->getSignedRequest(); error

后端 未结 6 1018
孤城傲影
孤城傲影 2021-01-06 14:39

i am trying to add this script to my iframe app on facebook but it seems not to work:

    $signed_request = $facebook->getSignedRequest();
$like_status =          


        
6条回答
  •  天涯浪人
    2021-01-06 15:25

    $_REQUEST['signed_request'] could be empty if your canvas (or page tab) URL is not the final one and redirects to some other URL because Facebook posts the signed request only once. When redirecting, the posted value is lost.

    If you have some control over the redirection, then add ?signed_request=$_REQUEST['signed_request'] to your redirected URL (you might also need to pass other custom GET parameters)

提交回复
热议问题