html - Newline WallPost Facebook C# -


i using following code post on facebook c# .net application:

   var fb = new facebookclient(token);    string url = string.format("{0}/{1}", uid, "feed");    var arglist = new dictionary<string, object>();    arglist["message"] = phought; //message posted    arglist["link"] = videourl;    object postid = fb.post(url, arglist); 

but when post contains newline character eg:

hi  going out 

it displayed as:

hi \ni \nam \ngoing\nout

i want code display output on facebook wall have shared without showing html chars kindly help

the below code works:

var fb= new facebookclient(token); fb.post("me/feed", new {message = "line 1\r\nline 2"}); 

on fb, posts:

line 1  line 2 

so should @ input string "phought" problem!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -