带有新行字符的消息显示为html代码 [英] Message with new line character is displayed as html code
本文介绍了带有新行字符的消息显示为html代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是使用以下代码在Facebook墙上/页面上发布多行消息。但是如图所示(文字在这里不同)。这是我的代码。
I am using following code to post multiline message on facebook wall/page. but it is appear as shown in image (the text are different here). here is my code.
string path = "/me/feed";
string token = fbLoginDialog.FacebookOAuthResult.AccessToken;
dynamic messagePost = new ExpandoObject();
messagePost.message = @"Hello guys!
How are you?
Can you help me on this?";
var fb = new FacebookClient(token);
try { var postId = fb.Post(path, messagePost); }
catch (Exception ex) { MessageBox.Show(ex.Message); }
我正在使用Facebook.dll版本:5.0.1.0
I am using Facebook.dll Version: 5.0.1.0
推荐答案
我使用Facebook.6.0.22
I got it working using Facebook.6.0.22
从这里下载最新版本 https://github.com/facebook-csharp-sdk/facebook-winforms-sample
这篇关于带有新行字符的消息显示为html代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文