In Facebook Messenger chat,we can break a line by press "SHIFT+ENTER".
So how to break line by Facebook Graph API(Messenger API).
I've seen in a few answers that the Graph API accepts <center></center>
instead of <br>
and some other parts of their API seem to accept \r\n
.
Is there currently any way of sending a line break and if there is where it it documented?
For most writing, this is not a problem until you want Word to not create a new paragraph. Thankfully, there is a keyboard shortcut that moves to the next line. Move the text cursor to where you want the new line to begin, press the Enter key, hold down the Shift key, and then press Enter again.
When you're ready to format the line break, hold down the "Shift" button on your keyboard and press "Enter." Let go of the "Shift" button when you're finished. The line break is created and you can continue typing out the next line of your comment or status update.
Turns out Line break in Facebook status update via Graph API might give you what you are looking for:
Use \u000A
For me it solved my similar issue I had with Facebook SendApi for a Facebook Messenger Bot.
If you are using php, You should be use chr(10)
. Its working as like '\n'
or '<br>'
. Also you can use <center></center>
. Its working for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With