How to subscribe to real-time updates for a Facebook page's wall

后端 未结 6 1936
遇见更好的自我
遇见更好的自我 2020-11-30 23:04

Facebook\'s real-time updates docs now say that you can get the feed for a page:

You can subscribe to the page\'s feed in the same way you subscribe t

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 23:45

    For this you need to set up an endpoint URL that receives both HTTP GET (for subscription verification) and POST (for actual change data) requests from Facebook.

    Then you should make a POST to the graph API url https://graph.facebook.com//subscriptions?access_token= to subscribe, and be ready to handle the verification request.

    Then to list subscriptions, just perform a GET request on the same url, https://graph.facebook.com//subscriptions?access_token=, which returns a JSON-encoded content that lists your subscriptions, up to one per object type.

提交回复
热议问题