Search code examples
facebookfacebook-graph-apifbjs

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 ?


Solution

  • 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"}