Koala gem: 如何更新页面信息?

Koala gem: how to update page info?

我有页面的授权令牌。我想更新我的页面属性,例如 is_webhooks_subscribed。我可以在 Graph API Explorer 中完成,没有问题。

Here is documentation on Page updating endpoint

如何在 Koala gem 中使用 Graph API 来做到这一点?

阅读完 gem 源代码。找到 api 方法,注释为:You'll array need to call this method directly.

解决方案:

graph = Koala::Facebook::API.new(page_auth_token)
graph.api('me', { is_webhooks_subscribed: true }, 'post')