This is currently a confirmed bug on the Facebook platform. Place of error: https://developers.facebook.com/bugs/465154327166499/ (as @ m90 mentioned, it requires a Facebook developer account to view it).
Description of the error and steps to reproduce:
- You have a new Facebook user (who has not previously interacted with your application)
- With this user, specify everything that usually produces an automatic response from the application.
Expected Result: Bot should respond
Actual result: For applications in development mode, this is error code 551 as follows:
{"error":{"message":"(#551) This person isn't available right now.","type":"OAuthException","code":551,"error_subcode":1545041, ...
For applications in production mode (already submitted and publicly available), this is a 200 error:
{"error":{"message":"(#200) This person isn't available right now.","type":"OAuthException","code":200,"error_subcode":1545041,...
Note: if the user sends more messages, the bot starts to respond normally after the second message from the same user.
Based on the information on the Facebook platform error page, the error appeared at the end of May 2017. On our side, we notice this last week (starting on June 5), it is important to note that new applications also crash due to this problem.
UPDATE June 9, 2017. The error is marked as fixed and is working on our side now. If you still have problems, Facebook asks you to comment on the error page.