Facebook and rtl
Posted
by Benni
on Stack Overflow
See other posts from Stack Overflow
or by Benni
Published on 2010-04-26T21:08:24Z
Indexed on
2010/04/26
21:13 UTC
Read the original article
Hit count: 210
Is there any good way to display rtl based languages (in this case Hebrew) in facbook? As soon as I include a page in rtl formating facebook it gives displays it ltr and usually aligned right. What definetly works is when I use dir="rtl" in the code. But then the fbml tag come out the other way round. And when I try to publish a stream it is not displayed correctly. Is there any support for rtl in facebook?
Here is the code:
$message = "?????? ??? ?? ???? - ??? ??? ????? .\"";
$attachment = array(
'name' => '???? ?? ???? - ?? ??? ??? ?????',
'href' => 'http://apps.facebook.com/igodtest/',
'caption' => '{*actor*} took the Quiz!',
'description' => 'Take the Quiz yourself!',
'media' => array(array('type' => 'image',
'src' => '',
'href' => '')));
$action_links = array(array('text' => '',
'href' => ''));
$attachment = json_encode($attachment);
$action_links = json_encode($action_links);
$facebook->api_client->stream_publish($message,$attachment,$action_links);
© Stack Overflow or respective owner