简体   繁体   中英

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. 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. The result is "Apps in the GK only need to pass TOS check" and I can't figure out what's happening.

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. Where I'm wrong ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM