(OAuthException) (#200) User must have accepted TOS on C# - Facebook

佐手、 提交于 2019-12-02 00:05:13

It doesn't look like you're actually using the users access token.

You need to go through the OAuth workflow, where the user is redirected to facebook.com and grants your application permission. Once that happens, you'll get an Access Token that you use to make requests on behalf of the user.

There's an overload for the FacebookClient class that will take an access token.

Since you didn't really expand on the type of app you're writing, the Facebook C# Github page has a collection of samples, for WinForms, ASP.NET, and Windows 8 Metro. This example should show you how to do client-side authentication.

You're also trying to post to OBJECT_ID, which isn't a valid user/post/page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!