I'm working on a messenger bot, my facebook app is not public, it's in development mode.
There's 1 approved developer for this app (me) and I can interact with the bot, but when I try to use the bot to send a message (not a reply to a message or payload!) to my page_scoped ID, I get the following error
{"error":{"message":"(#200) This person isn't receiving messages from you right now.","type":"OAuthException","code":200,"fbtrace_id":"..."}}
This happens only when I'm logged out, when I'm logged in & the messenger window is open I receive the message. I don't need to send a message to the bot, the window just needs to be open and receiving works fine.
I think it has something to do with a missing pages_messaging or pages_messaging_subscriptions permission in my developer dashboard. But I can't add these permissions, because a) I don't yet have a screencast and b) I don't want an official app review or make the app public. And the only button I see next to the permissions is "submit for review".
So let's say for starters I want to send a message every hour from the bot to a certain user, no matter if the recipient is online or offline, which steps/settings are necessary for my app while in development mode?
EDIT: I was able to reproduce the issue: if the user clears the chat conversation, the bot no longer can contact the user. Everything works fine, even if I'm logged out as long as I don't clear the chat. Is this a bug or a feature?