views:

161

answers:

2

Hello,

I'm making an application that is posting some information to your facebook wall using facebook sdk for android. This works, but I can't seem to get new lines on the posts. I have tried \n but it doesent work. Any suggestions?

Here is my code:

Bundle parameters = new Bundle();

String temp = "";
for (int i = 0; i < mArrayAdapter.getCount(); i++){
            temp = temp + mArrayAdapter.getItem(i) + "\n"; // Not working
}

parameters.putString("message", temp);
mFacebook.dialog(this, "stream.publish", parameters, new DialogListener());  

Thanks,

James Ford

+1  A: 

Hi James i have tried that before, even with html code but i think thats not possible. The reason, Facebook must have a control to avoid blank spaces or line break on his posts.

Jorgesys
+1  A: 

New lines are not allowed in stream posts (the fact that you may have seen them in the past are bugs on facebook).

daaku
Seems true. But what I can do is make new lines with alt+enter when typing to a wall. Maybe you can do something with this?
James Ford