本文介绍了Facebook 发送对话框:在描述中添加换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我必须向我的应用程序发送邀请的网址:

This is an URL I have to send an invitation to an app of mine:

https://www.facebook.com/dialog/send?app_id=MY_APP_ID&
name=hola&
link=http://www.aWebSite.com&
picture=http://www.aWebSite.com/im01068442.jpg&description=participar!&
redirect_uri=http://elsuperdt.com

我正在尝试在说明中包含换行符,但我还没有找到这样做的方法.我该怎么做?

I'm trying to have a linebreak included within the description, but I just haven't found a way to do so. How do I do it?

推荐答案

我遇到了同样的问题,最终放弃了.Facebook 似乎竭尽全力避免让我们在描述中出现任何换行符.

I had the same issue and eventually gave up. Facebook seems to have gone to great lengths to avoid letting us have any linebreaks in the description.

您可以做的一件事是添加一个 &caption=first%20line,它可以让您在标题和描述之间换行.(不过,标题的长度有一个很短的限制 - 大约 80 个字符.)

The one thing you can do is add a &caption=first%20line which gets you one linebreak between the caption and the description. (There's a pretty short limit on how long the caption can be though - something like 80 characters.)

更新:这不再适用于 send 对话框.它仍然适用于 feed 对话框

Update: this no longer works for send dialogs. It does still work for feed dialogs

这篇关于Facebook 发送对话框:在描述中添加换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 11:11