【发布时间】:2013-06-18 04:41:02
【问题描述】:
文档中的代码使用<form method="POST" 将视频发布到个人资料:
// Using the page access token from above, create the POST action
// that our form will use to upload the video.
$post_url = "https://graph-video.facebook.com/" . $page_id . "/videos?"
. "title=" . $video_title. "&description=" . $video_desc
. "&access_token=". $access_token;
// Create a simple form
echo '<form enctype="multipart/form-data" action=" '.$post_url.' "
method="POST">';
echo 'Please choose a file:';
echo '<input name="file" type="file">';
echo '<input type="submit" value="Upload" />';
echo '</form>';
不使用表单从 URL 发帖最简洁的方法是什么?
【问题讨论】: