How to get all events from a facebook Page

前端 未结 1 637
我寻月下人不归
我寻月下人不归 2021-01-25 10:05

There are tons of StackOverflow answers about getting events from a facebook Page.
They all list a FQL query and I\'m sure they all work great; but since I\'m new to this I

1条回答
  •  有刺的猬
    2021-01-25 10:36

    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#.

    0 讨论(0)
提交回复
热议问题