Quote:
Originally Posted by KristerSwe
[Fixed]
I had to change in function.php from UTF-8 to ISO-8859-1 to make it work
when its sending from forum post to facebook.
exemple (Not sure this right method) but its worked
Code:
function &fb_stream_addcomment($post_id, $comment, $uid = null) {
fb_encoding_to_Facebook($comment);
try {
fb_forcessk();
$result =& theFacebook()->api_client->stream_addComment(
$post_id
, $comment
, $uid
);
if (function_exists('mb_convert_encoding')) {
$comment = mb_convert_encoding($comment,'ISO-8859-1');
}
$data = array(
'post_id' => $post_id,
//'comment' => $comment,
'uid' => $uid,
);
fb_log(FBF_stream_addcomment,$result,$data);
} catch (FacebookRestClientException $e) {
fb_log_exception(FBF_stream_addcomment,$e,$data);
}
return $result;
}
|
Can you try removing these 3 lines
Code:
if (function_exists('mb_convert_encoding')) {
$comment = mb_convert_encoding($comment,'ISO-8859-1');
}
I think it will just work since I called
Code:
fb_encoding_to_Facebook($comment);
before