[英]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.