/ Published in: PHP
Rescato variables desde un iframe con $signed_request
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // THE MAGIC SAUCE $signed_request = $facebook->getSignedRequest(); $page_id = $signed_request["page"]["id"]; $like_status = $signed_request["page"]["liked"]; // HERE IS A STRING OF YOUR APP DATA. $app_data = $signed_request["app_data"]; echo '$app_data = '.$app_data; ?>