我有这个功能:
public function postToFacebookWall($title, $uri, $desc, $msg = null, $pic = null, $caption = null, $action_name = null, $action_link = null, $uid = 'me') {
try {
$data = array(
'name' => $title,
'link' => $uri,
'description' => $desc
);
if ($pic) {
$data['picture'] = $pic;
}
if ($caption) {
$data['message'] = $caption;
}
if ($action_name) {
$data['actions'] = json_encode(array('name' => $action_name, 'link' => $action_link));
}
App::Facebook()->api("/$uid/feed", "post", $data);
} catch (Exception $e) {
return false;
}
return true;
}
它在下面发布文本和链接。我可以以某种方式告诉 Facebook 将文本设置为粗体吗?我想让我的标题加粗,但我不知道怎么做。如果我把它放在里面或者标签,然后在 Facebook 上我看到如下文字:
<strong>This is my text</strong>
<b>This is my text</b>
而不是使文本变粗。如何使我的文本变粗?