How to get all events from a facebook Page

核能气质少年 提交于 2019-12-02 06:22:41

I know the example is in VB but I'm sure you can port it to C# no problem. Here is an example using the Branches FB API library.

Dim FB As New SessionInfo("[access_token]")
Dim Req = New Functions.Requests(FB)
Dim EL = Req.GetEvents("[PageID]")
For Each E In EL
    Response.Write(E.id)
    Response.Write(E.name)
Next

This assumes that you already have an access_token from FB. If not you can check out the authentication example on the api. It's .Net so you can use it with C#.

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