Facebook Graph C# SDK Ver 6.0: Unable to create event on App's Page

北战南征 提交于 2019-12-25 19:46:19

问题


I am converting a fully working C# Web Application from REST API to GRAPH API, using FB C# SDK 6.0. I have been able to obtain access token and post event to my "personal" Facebook page without problem. But I need to post the event to the Page associated with my Web Application (for which I am the Admin). I am totally at a loss as how to obtain the required access token, and construct the "fbClient.Post" call to create the event. I could find no relevant example with the SDK. And I have spent many hours researching this and other forums etc.

Any help or even clues would be much appreciated.


回答1:


A wealth of information is there for the reading:

https://github.com/facebook/csharp-sdk

NOTE: THIS SDK IS DEPRECATED. WE ARE KNOW LONGER SUPPORTING IT AND IT WILL BE MADE PRIVATE SOON.

And ...

Most data accessible via the Graph API required an access token. This SDK does not include a method of getting a token from a user, as the best method will depend on what type of application is using it. A desktop application might show a popup browser window that loads the Facebook site, for example. You can read more about obtaining an access token in the authentication guide.



来源:https://stackoverflow.com/questions/9965672/facebook-graph-c-sharp-sdk-ver-6-0-unable-to-create-event-on-apps-page

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