I am trying to post on Facebook wall, with following code. The message sometimes contains double quotes or other characters which is converted on wall, don't know how to get this resolved. Following is the code I am using
UPDATE
$title = get_the_title($post->ID); // using wordpress posts' title
//$title = "John's message has \"\" double quotes"; I thought it might be facebook doing something with the title. but by using raw according to Tim, it worked.
$attachment = array(
'access_token' => $smm_fb_access_token,
'message' => $title,
'name' => "Site.com",
'link' => $handler_url,
);
$facebook->api(sprintf('/%s/feed', $fb_id), 'POST', $attachment);
The post on Facebook becomes like that
John’s message has ““ double quotes.
Please guide what should I do to make it work?