Creating a chatbot, but getting an authorisation error when executing with an access token in command prompt.
1

I'm using node and heroku to create a Facebook Messenger bot, I'm up to the webhook stage and trying to implement my access token with the following line

curl -X POST https://graph.facebook.com/v3.3/me/subscribed_apps?subscribed_fields=publisher_subscriptions&access_token=******

And command prompt is yielding the error message:

{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500,"fbtrace_id":"AgbCXm34gHMJtnbxWVJzN5d"}}'access_token' is not recognized as an internal or external command, operable program or batch file.

Am I missing a key part which is leading to an authorisation error? I'm following a tutorial from a while back so I'm not sure if Facebook has changed something on their end which may be getting in the way?

Joseph
Asked about 6 months ago