Facebook messages - facebook

Is there any way I can intercept messages from facebook groups?
Tried to add a chatbot to a group, but it's just allowed to add persons to chat group, so I guess chatbot is out of the possibilities.
Then I googled and found out that the functionallity for the graph api is alreadry deprecated: https://developers.facebook.com/docs/chat/
For the record, My goal is to be able to do some actions, based on what people say in a chat group.
Any hints on this? Any workaround is also apreciated.

This is not supported. You can build a Chat Extension to offer functionality that can be invoked in a group chat, but it won't be able to actively listen and participate in the way you are asking about.

Related

Can I give my facebook messenger chat bot the exclusivity of answering users?

I connected a Facebook messenger bot to a page with several admins. I am not yet very familiar with the facebook messenger platform but it looks like when a user messages our page. Admins see the incoming message and can respond to it. Can I deactivate this ? I want my bot and only my bot to handle incoming message, I don't want admins of the page to be able to interfere in the user experience. I was thinking it should be easy to do but I cannot find how to do that. To recap : I would like my chat bot to have the exclusivity of chatting with users from my facebook page, do you know how to do this ?
Thank you very much
Admins see the incoming message and can respond to it. Can I deactivate this ?
No, you can not.
Bots are meant to be able to help with page tasks regarding answering user messages, but not to take over control completely.
Well, according to this Facebook help article, the roles available to your page admins are listed there. Use it as your guide.
After searching, I was unable to find anyway to make the conversation between a Facebook messenger bot and a Facebook user private (in the sense that no page admin, editor or moderator would be able to see the conversation from the page inbox). If you want your bot to have a private conversation with your users for certain sensitive actions, your only option as of now seems to be using a webview.
Using a Webview can complicate a little bit your workflow because Webviews are not supported the same way on all platforms but at least, it will enable you to gather direct inputs from your users that your Facebook page moderators will not be able to see from the admin page.

Using bots on Facebook groups

I am new to Facebook messengers bots. I want to know how can I add a bot to a group (more than 1 people in the conversation). I read about the API in here
and I tried some bots like Mealou and getbirdiebot on my messanger. But in order to access them, I had to click on their link, which trigers an event for oppening a private conversation between me and the bot. How can I add a bot to a group then?
Is it even possible?
P.S: In this link facebook uses A.I to read the text and process it in the groups. I want to do something like that.

API invites to facebook events no longer possible?

Is it currently possible to invite users to a facebook event via any API?
Scripting language doesn't matter, I just want to know if there is still any possibility to do that.
I've searched the web for a while now but haven't got a clear answer. All the forum topics I've found that discuss this and suggest it's possible are years old.
It seems it was possible before, but not anymore?
At least the official Graph API reference says it's no longer possible:
https://developers.facebook.com/docs/graph-api/reference/v2.0/event/invited#publish
"Publishing
You cannot invite people to events via the Graph API."
Is there any other way to do that?
Thanks.

Get list of friends above the messenger in Facebook with Graph Api

I stuck on finding a way to get the list of friends above the messenger :
This list contains the "most used friends" in facebook messenger...
Facebook give us a way to get these information ?
Thank you
Facebook chat does not use standard Graph Api, it uses XMPP protocol instead. Here you can find facebook documentation. As far as I know you can get list of active friends in XMPP, you can get more info about xmpp roster here. The best way to implement this is to use some open source XMPP libraries. There is official list so use one of those.
You should also note that "Your Facebook Chat integration should only be used for sessions that are expected to be long-lived. Clients should not rapidly churn on and off." The chat API is meant to be used for chat. With that in mind consider if you are really going to use that api for a long term session.
There is currently no API which returns the list of friends visible at the top of the chat window on Facebook.com

Facebook comments subscribe to thread/conversation via API

I am using the new facebook comments module, and I am intersted in subscribing a user to a conversation via the API. I am referring to http://developers.facebook.com/docs/reference/api/Comment/ but this doesnt seem to have an API call for a user to subscribe to a conversation. Any help is much appreciated.
Thanks in advance.
The comment plugin has subscribe options for each item in the thread for the users. That would be the easiest for the user. Their currently isn't a documented API method for this. You could build something yourself manually, and while possible, it will have the problem that you won't be able to notify them very easily like Facebook allows with the red notification api (you would have to resort to emailing them or something similar). You would also need them to authenticate your application and prompt for various extended permissions.