从Facebook访问Xml元素到C#表单 [英] Accessing Xml elements from facebook to C# Form

查看:68
本文介绍了从Facebook访问Xml元素到C#表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我想从 https://www.facebook.com/groups访问元素文本(即好友) /FAW.2011/ [ ^ ]并将其写入我的表单即Form1 textBox1.Text;

为此我编写了如下所述的代码,但无法访问它。



  string  url =   https://www.facebook.com/groups/FAW.2011/; 

XmlDocument docs = new XmlDocument();
docs.LoadXml(url);

string name = ;
string show = Convert.ToString(docs.InnerText.Contains(name));
textBox1.Text = show;



任何人都可以帮我修改,以便我可以从上面提到的网址访问元素文本(即好友)吗? div class =h2_lin>解决方案

我建​​议你看看:

https://developers.facebook.com/ [ ^ ]



我认为他们可以比我们更多地帮助你


Actually I want to access an element Text(i.e. Friends) from https://www.facebook.com/groups/FAW.2011/[^] and write it to my form i.e. Form1 textBox1.Text;
for this purpose I write a code like mentioned below but could not access it.

string url="https://www.facebook.com/groups/FAW.2011/";

XmlDocument docs = new XmlDocument();
docs.LoadXml(url);

string name="Friends";
string show=Convert.ToString(docs.InnerText.Contains(name));
textBox1.Text=show;


Can anyone help me to modify so that I can access an element text (i.e. Friends) from the above mentioned url?

解决方案

I would recommend you to have a look to:
https://developers.facebook.com/[^]

I think they can help you more than we


这篇关于从Facebook访问Xml元素到C#表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆