Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. while positing to facebook how to give a hyperlink with the message content
  2. $link = "http://www.somedomain.com/someting";
  3. $attachment = array(
  4. "message" => $message,
  5. "link" => $link);
  6.  
  7. // OR If you just want to show link then
  8. $newLink = "<a href='http://www.somesite.com/somepageToShowMEssage'>Click Here</a>";
  9. //try just adding the link as attachment
  10. $attachment = array(
  11. "link" => $newLink
  12. );
  13.  
  14. $sendMessage = $objFacebook->api("/$sendToId/feed/", "post", $attachment);