简体   繁体   English

C#facebook sdk:(OAuthException-#100)(#100)GK中的应用程序只需通过TOS检查

[英]C# facebook sdk : (OAuthException - #100) (#100) Apps in the GK only need to pass TOS check

I'm attempting to publish a video on a page using c# sdk and a simple form. 我正在尝试使用c#sdk和一种简单的形式在页面上发布视频。 Here is the code: 这是代码:

var fbp = new FacebookClient();
dynamic result1 = fbp.Get("oauth/access_token", new
            {
                client_id = appID,
                client_secret = secretKey,
                grant_type = "client_credentials"
            });
            fbp.AccessToken = result1.access_token;

           dynamic parameters = new ExpandoObject();
           parameters.source = new FacebookMediaObject
           { ContentType =  "multipart/form-data",
             FileName = filename
           }.SetValue(System.IO.File.ReadAllBytes(textBox1.Text));

in the url string 1101387076701538 is the app page ID. 网址字符串1101387076701538中的“是应用页面ID”。 The result is "Apps in the GK only need to pass TOS check" and I can't figure out what's happening. 结果是“ GK中的应用程序只需要通过TOS检查”,而我无法弄清楚发生了什么。

Thanks for the suggestion. 谢谢你的建议。 I changed the code in : 我更改了代码:

            dynamic result1 = fbp.Get("oauth/access_token", new
            {
                client_id = appID,
                client_secret = secretKey,
           //      page_id = "1101387076701538",
                redirect_uri = "https://www.facebook.com/connect/login_success.html",
                grant_type = "page_credentials"
            });

now the error is "Unable to load URL : Domain of this url is not included in App domains" But I have included it in app domains. 现在错误是“无法加载URL:此URL的域未包含在App域中”,但我已将其包含在App域中。 Where I'm wrong ? 我哪里错了?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (OAuthException)(#200)用户必须已在C#上接受TOS-Facebook - (OAuthException) (#200) User must have accepted TOS on C# - Facebook 使用Facebook Sharp SDK创建自定义对象时出现OAuthException#100 - OAuthException #100 when creating custom object with facebook sharp SDK OAuthException Facebook C#SDK ie9 - OAuthException Facebook C# SDK ie9 Facebook c# sdk 错误 OAuthException - #2 - Facebook c# sdk error OAuthException - #2 Facebook SDK C#-尝试通过Facebook图形API发布链接,但得到了(FacebookApiException-#100)无效的参数 - Facebook SDK C# - try to post a link through facebook graph api but got (FacebookApiException - #100) Invalid parameter 使用Facebook C#SDK发布到Facebook页面时,我怎么突然开始收到OAuthException - How come I suddenly start receiving OAuthException when posting to facebook page using facebook c# SDK (OAuthException)在Facebook C#SDK上验证带有动态用户= FbApp.Get(“ me”)的访问令牌时出错 - (OAuthException) Error validating access token w/dynamic user = FbApp.Get(“me”) on Facebook C# SDK C#如何对输入进行错误检查,确保仅接受1-100之间的整数 - C# How do I error check the input ensuring only integers between 1-100 are accepted 在C#中创建Facebook事件返回#100无效参数 - Creating Facebook Event in C# Returns #100 Invalid Parameter Facebook API异常#100-C#中的无效参数 - facebook api exception #100-invalid parameter in c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM