get a new short-lived user access_token
问题 I need to renew a long-lived access token. I read Renew long lived access token server side topic and wrote a code as follows: <?php $code = $_REQUEST["code"]; if(empty($code)) { $dialog_url = "https://www.facebook.com/dialog/oauth?" . "client_id=$app_id" . "&redirect_uri=$my_url" . "&scope=..." ; echo("<script> top.location.href='" . $dialog_url . "'</script>"); } else { $response = file_get_contents("https://graph.facebook.com/oauth/access_token?" . "client_id=$app_id" . "&redirect_uri=$my