facebook c# sdk: Add/edit event with newlines in description

前端 未结 3 1572
生来不讨喜
生来不讨喜 2021-01-24 11:46

I am trying to edit events on facebook pages. The SDK works fine, but I have one problem.

Whenever there are newlines in the description (\\r\\n), they get posted to fac

相关标签:
3条回答
  • 2021-01-24 12:08

    This works:

    Use this: <center></center>

    Instead of a br or a newline, etc. You can only do one in a row (ie. you can't increase the spacing).

    0 讨论(0)
  • 2021-01-24 12:08

    Is there any reason why you wouldn't use:

    {
        "name": "TEST EVENT",
        "description": "New event!<br/>Welcome to the event.",
        "start_time": "2011-03-24T00:00:00"
    } 
    

    jsonlint validates it...

    0 讨论(0)
  • 2021-01-24 12:21

    Fixed as of version SDK 5.0.8 - 25. march

    0 讨论(0)
提交回复
热议问题