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
Post a Comment