在Facebook API中,我需要知道如何在发布时标记发布的页面。在this link中,我在消息密钥中找到了使用@[page-id]
的页面,但我无法标记页面。请帮我看看如何使用我的应用程序。
$params = array(
"access_token" => $_SESSION['facebook_access_token'],
//"message" => $_SESSION['address']." Test message",
"message" => "Test message @[19292868552] tag",
"link" => $site,
"picture" => $_SESSION['file_name'],
"name" => "WeAreVapour",
"description" => "Vapor Technology Association"
);
try {
$ret = $fb->post('/me/feed', $params);
echo 'Successfully posted to Facebook';
} catch (Exception $e) {
echo $e->getMessage();
}