嗯,我正在尝试让应用程序在C#中向Facebook发表评论。 在谷歌搜索我知道我需要一个应用程序(我做到了),我需要选择权限。我做到了.. 现在我写在C#我的代码:(OAuthException)(#200)用户必须接受C#上的服务条款 - Facebook
private string MyAppId = "XXX";
private string MyAppSecret = "XXX";
private void button1_Click(object sender, EventArgs e)
{
FacebookClient FB = new FacebookClient(MyAppId, MyAppSecret);
Dictionary<string,string> data = new Dictionary<string,string>();
data.Add("message","test");
FB.Post("OBJECT_ID/comments", data);
}
但是,当我按一下按钮我得到这个错误:
(OAuthException) (#200) User must have accepted TOS
我越来越疯狂!请帮我=(
我将它改为“OBJECT_ID”,因为ID是私人的。您可以帮助我使用OAuth工作流程吗?我收集了大量的帖子和代码,并没有得到任何东西!太难了:S! PD:我正在使用Facebook Framework for Net Framework 4.0。 谢谢 –
这是什么类型的应用程序?一个Web应用程序或桌面? – mfanto
是一个桌面,基本上我想从我的应用评论照片的相册。 –