0
我有頁面的身份驗證令牌。我想更新我的頁面屬性,如is_webhooks_subscribed
。我可以在Graph API Explorer中完成,沒有任何問題。考拉寶石:如何更新頁面信息?
Here is documentation on Page updating endpoint
我該怎麼做,在考拉寶石使用圖形API?
我有頁面的身份驗證令牌。我想更新我的頁面屬性,如is_webhooks_subscribed
。我可以在Graph API Explorer中完成,沒有任何問題。考拉寶石:如何更新頁面信息?
Here is documentation on Page updating endpoint
我該怎麼做,在考拉寶石使用圖形API?
結束閱讀寶石源代碼。找到api
方法,即註釋:您很少需要直接調用此方法。
解決方案:
graph = Koala::Facebook::API.new(page_auth_token)
graph.api('me', { is_webhooks_subscribed: true }, 'post')