Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Line break in Facebook status update via Graph API

Tags:

I'm writing a simple Facebook status update web app that uses Graph API. It works well except for when I'd like to include a line break in the status message. I've tried adding a simple HTML
tag, but this is just rendered as text.

Anyone know if this is possible, and if so, how?

like image 734
Dan Avatar asked Apr 07 '11 15:04

Dan


People also ask

How do you line break a post on Facebook?

Type the first line of your comment or status update. 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.

Is Facebook Graph API a REST API?

Yes, it is a REST API as well. Show activity on this post. Yes, there have been 3 Facebook API's to date: Legacy REST.

Why Facebook API is called Graph API?

It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks. The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields.


1 Answers

It sounds silly, but this works: Insert <center></center> where you would normally put <br>.

like image 62
heksemann Avatar answered Oct 16 '22 13:10

heksemann