/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $app_id = "[YOUR APP ID]"; $canvas_page = "[YOUR APP URL]"; $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" $signed_request = $_REQUEST["signed_request"]; echo("<script> top.location.href='" . $auth_url . "'</script>"); } else { echo ("Welcome User: " . $data["user_id"]); } ?>
URL: http://stackoverflow.com/questions/4812852/facebook-authorize-app-script
Comments
