My bot is the primary reciever and the page inbox is secondary.
Messages from the user is placed correctly in the done folder, but when the bot replies its moved out to the inbox.
Anyone else experienced something similar to this?
Related
Is there a way how I can send regular message to facebook page?
I got this:
https://github.com/Schmavery/facebook-chat-api
but it is unofficial.
When I've tried to send several messages sending account was blocked.
I have not found any info about limits or anything else connected to sending messages to Facebook pages.
In official Facebook documentation regarding messaging API there is nothing about sending message to Page. As bot is acting as Facebook Page itself I suppose it can't send message to another Facebook Page.
There is no API to send user to page messages, you can only send messages from page to user. And only if the receiver started the conversation first.
Don´t use unofficial ways, they are not allowed.
Is their a way to send a private message on Facebook from your personal account to a Facebook page, from an external app ? (through the API or else)
Exactly as if you were contacting a page manually, by I wanna be able schedule the messages to send to the page, and let a software send it for you.
I've seen so many topics in SO but no one giving a answer to this specific situation.
Thanks
No, that is not possible.
You can not automate sending user messages at all.
I have a website where users log in with Facebook. Right now there's no way for users to contact each other.
I was thinking of building a dedicated live messenger with sockets, but I wonder if there's an easier way to allow them to send messages to each other's Facebook Messanger, since they are already logged in with facebook.
There is no API for a chat between two users. Everything in Messenger API is focused on communication between a user and a page.
At most you can use the Send dialog to let a user send a link to their friends, but that requires the user actively using the button, you can not “automate” that; and handling the result will have nothing to do with your site any more, everything after that will happen in messenger only. https://developers.facebook.com/docs/sharing/reference/send-dialog
In cnn fb messenger bot if i write subscribe they show a message like "Got it. I’ll send you top stories every day." and then they daily send me top stories at fixed time. How they do it? I created an fb bot for my site without this but i can't understand how i add this. can anyone tell me basic instruction for this?
The idea is simple. When you send "subscribe" to the bot, the bot server would add a record according to the sender_id to their database or memory , then the bot server could set a timer to distribute the news messages to those sender_id who have subscribed for the news.
Facebook does not offer a feature which forwards ALL my received messages to my email inbox, and subsequently deletes them from my facebook inbox. Is there an existing application or online service which offers this functionality? If no:
I want to write a script which does exactly that. It should poll regularly if a new message has arrived. If yes, it should forward it to my email address and delete it from my FB inbox automatically, without user interaction.
Which scripting languages are suited for that task, which classes and methods? Is it advisable to move that script to a web server so it runs continuously without user interaction? How can one go about that?
Facebook does not delete anything, only you can delete inbox messages.
Anyway, what you are trying to achieve is not possible, access to the inbox is not possible anymore. Facebook removed the API endpoint for it.
You will need to use facebook graph extended permissions "read_mailbox" to read the facebook messages.
Please note that this extended permission is available only for facebook graph API version 2.3 (not available for version 2.4 and up).
You can read the facebook messages every 5/10 minutes (via graph API) and in the case of a new message you can create a new self email message with the facebook message.
You will NOT be able to delete the facebook message (read mode only)
Hope this helps.
Good luck!