簡體   English   中英

在向Facebook放置時如何給出帶有消息內容的超鏈接

[英]while positing to facebook how to give a hyperlink with the message content

我正在嘗試使用圖形API發布到Facebook牆。 我可以做到..但是我需要給消息內容提供一個超鏈接,並且標記中沒有出現該超鏈接。.我需要諸如“ message” =>“ My message and my link”之類的東西,任何人都可以幫助我。 ..

謝謝。

您的意思是這樣的嗎:


$link = "http://www.somedomain.com/someting";
$attachment = array(
"message" => $message, 
"link" => $link);

// OR If you just want to show link then
$newLink = "<a href='http://www.somesite.com/somepageToShowMEssage'>Click Here</a>";
//try just adding the link as attachment
$attachment = array(
"link" => $newLink 
);

$sendMessage = $objFacebook->api("/$sendToId/feed/", "post", $attachment);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM