Facebook Messenger API:如何在消息中断行 [英] Facebook Messenger API:how to break line in a message
问题描述
在Facebook Messenger聊天中,我们可以按SHIFT + ENTER打破一行。
那么如何通过Facebook Graph API(Messenger API)打破行。
I在几个答案中,Graph API接受< center>< / center>
而不是< br>
和API的其他部分似乎接受 \r\\\
。
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?
推荐答案
如果你使用php,你应该使用 chr(10)
。它的工作就像'\\\
或
''< br>'
。还可以使用< center>< / center>
。它为我工作。
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.
这篇关于Facebook Messenger API:如何在消息中断行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!