信息与新行字符显示为HTML code [英] Message with new line character is displayed as html code
本文介绍了信息与新行字符显示为HTML code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用下面的code张贴在Facebook墙/页多行消息。但如图图像(文本是不同这里)被显示。这里是我的code。
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样本
这篇关于信息与新行字符显示为HTML code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文