
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.47 KB | hits: 20 | expires: Never
while positing to facebook how to give a hyperlink with the message content
$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);