Facebook Graph C#SDK Ver 6.0:无法在App页面上创建活动 [英] Facebook Graph C# SDK Ver 6.0: Unable to create event on App's Page

查看:142
本文介绍了Facebook Graph C#SDK Ver 6.0:无法在App页面上创建活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用FB C#SDK 6.0将完全正常的C#Web应用程序从REST API转换为GRAPH API。我已经能够获得访问令牌和发布事件到我的个人Facebook页面没有问题。但是我需要将事件发布到与我的Web应用程序相关联的页面(我是管理员)。我完全失去了如何获取所需的访问令牌,并构造了fbClient.Post调用来创建事件。我可以找到与SDK没有相关的例子。我已经花了很多时间研究这个和其他论坛等。



任何帮助甚至线索都将不胜感激。

解决方案

有很多信息可供阅读:



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


注意:此SDK已被删除。我们知道如何长时间地支持它,它将被私有化。


And ...


大多数可通过Graph API访问的数据都需要访问令牌。此SDK不包括从用户获取令牌的方法,因为最佳方法将取决于应用程序使用的类型。例如,桌面应用程序可能会显示加载Facebook站点的弹出浏览器窗口。您可以在认证指南中阅读更多关于获取访问令牌的信息。



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.

解决方案

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.

这篇关于Facebook Graph C#SDK Ver 6.0:无法在App页面上创建活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆