Curl 无法将应用程序订阅到该页面

Curl 无法将应用程序订阅到该页面,curl,facebook-messenger,Curl,Facebook Messenger,我将按照入门教程()和本教程()为messenger创建一个简单的机器人。 我已经创建了一个fb页面和一个应用程序。我已经运行了一台Heroku服务器,并成功地完成了webhook安装。我还生成了页面访问令牌 现在,当我尝试使用以下方式将应用程序订阅到页面时: curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<my_access_token>" 当我在没有-ik-X的

我将按照入门教程()和本教程()为messenger创建一个简单的机器人。 我已经创建了一个fb页面和一个应用程序。我已经运行了一台Heroku服务器,并成功地完成了webhook安装。我还生成了页面访问令牌

现在,当我尝试使用以下方式将应用程序订阅到页面时:

curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<my_access_token>"
当我在没有-ik-X的情况下跑步时:

curl "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<my_access_token>"

如何修复上述错误?

在Windows PowerShell中运行此操作

Invoke-RestMethod -Uri https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<theToken> -Method Post
Invoke RestMethod-Urihttps://graph.facebook.com/v2.6/me/subscribed_apps?access_token= -路标

在Windows PowerShell中运行此操作

Invoke-RestMethod -Uri https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<theToken> -Method Post
Invoke RestMethod-Urihttps://graph.facebook.com/v2.6/me/subscribed_apps?access_token= -路标
Invoke-RestMethod -Uri https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<theToken> -Method Post