Facebook API: Post to wall with multiline message
I'm posting to a User's wall using the Post API. I want the message which gets posted to have line breaks and links. Eg -
screenshot http://dl.dropbox.com/u/5154158/shot.png
Line 1 (Sid is ...) is Post#title.
Line 2 (Venmo is.. ) is Post#description
Line 3 and 4 (See more and If you) look to be Post#message. Its a link and there is a line break.
I want to achieve line 3. The documentation says Post#message is a JSON string, so far I've tried giving it HTML (tags get stripped), encoded tags( tags get printed instead of actually applied) - nothing seems to be working.
Not sure how to go about this ? Ideas anyone ?
You can at least do something "similar" this ways:
1) Pass your link target as "link" parameter and "see more" as caption.
2) pass an actions parameter like this:
{"name": "see more", "link": "http://mylinktarget.foo"}
Line breaks do not work but using tags does.
{"description":"<center>line 1</center><center>line 2</center>"}
The Facebook API appears to honor ASCII Code 10 for newlines.
精彩评论