如何为所有Facebook页面取消订阅应用程序 [英] How to Unsubscribe an app for all Facebook pages Webhooks

查看:290
本文介绍了如何为所有Facebook页面取消订阅应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Facebook App,该App已订阅20,000多个页面.服务器无法处理来自所有这些Facebook页面的挂钩,我想取消订阅来自所有这些Facebook页面的应用程序.有没有一种更快的方法可以做到这一点.我拥有的大多数页面访问令牌都已过期,因此我无法循环浏览所有页面并取消订阅我的应用.

I have a Facebook App which is subscribed to more than 20,000 pages. The server isn't able to process hooks from all these Facebook pages, I want to unsubscribe my app from all these Facebook pages. Is there a quicker way to do this. Most of the page access token I have is expired, so I can't loop through all the pages and unsubscribe my app from them.

推荐答案

要从Facebook页面退订应用程序,则不需要页面中的令牌.您所需要做的就是您的应用访问令牌.要取消订阅该页面,只需向以下站点发出DELETE http请求即可:

To unsubscribe your app from a Facebook page, you do not need a token from the page. All you need is your App Access Token. To unsubscribe from the page just make a DELETE http request to:

https://graph.facebook.com/{page_id}/subscribed_apps?access_token={your_access_token}

您可以通过向以下站点发送GET请求来获取您的应用访问令牌:

You can get your App Access Token by sending a GET request to:

https://graph.facebook.com/oauth/access_token
    ?client_id={app-id}
    &client_secret={app-secret}
    &grant_type=client_credentials

因此,只需对要退订的每个页面发出DELETE请求即可.

So just make a DELETE request to each page you want to unsubscribe from.

这篇关于如何为所有Facebook页面取消订阅应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆