Laravel notification facebook driver get fb_messenger_user_id - laravel

I want to give users the ability to get notifications via the facebook messenger. However, I don't really know how to get the fb_messenger_user_id from a user.
I can get a personalized ID for the chat if a user starts chatting with my bot, but with this, I can't really verify which user that is. Is there something I've overseen? Something like a button similar to the "login with facebook" button?
Also, as far as I understand the docs, I am only allowed to send messages in a time frame of 24h after the last message from the user.
Can someone tell me how to use the facebook notifications properly?
As a side note: I am planning to implement botman into my existing app. I don't know how much this affects the notifications.

Related

How to send signUP or login otp message to Viber account with DRF? How to solve this problem

I want to create some sort of Viber bot to send messages to Viber user account, actually just to notify them. I've tried to follow their documentation, but I couldn't make it work, because it was not clear to me at all. So, can you guys provide me some guide how can I send message to viber account

Push notification appears after one user messages another user using firebase and xcode

If I were to make a messaging app which would involve a user recieving a notification after being messaged by another user, how could i go about setting up the notifications in such a way where they are sent after the message is sent by the user who sent it. If someone could point me in the right direction that would be awesome thank you.
P.S. I am using cloud messaging

Is there a way to keep my Slack App from being used in Channels?

Is there a way to keep my Slack App from being used in Channels?
I only want the current user to be able to interact with the App directly and it not to show in any channels.
When setting up a app in MS Teams using App Studio there is a option that lets you limit the App to "Personal" I'm looking for something similar in Slack.
I am not sure what use cases you want to prohibit exactly, but in general your app can check each incoming request and decide if and how it wants to react to it.
For example you will always get the user ID of who sent the slash command or message to the bot. You can use that to filter our users that should not have access.
Update
To restrict your app the the app channel you need to do the following:
When receiving a request from the user, first open a direct message channel to the user from the bot user. That will always give you the channel ID of the app channel.
Then reply with a direct message in that app channel
or alternatively check if the received request is from the app channel and ask the user to only talk in app channel if it is not.
See also this answer on how this works in detail.

How to show popup message in msbot after adding it to a teams channel (nodejs)

I am trying to show a popup message to user asking him to login after adding my bot to teams channel. Like how trello and polly does.Here is the pic of trello how it is asking user to login after adding it to teams channel.
Is there any way that I can achieve something like that?
Any help would be really thankful
If you want to open a popup to allow a user to login you could do that by implementing Authentication for your Bot. If you want to open a popup to show a card/Html page you could try using TaskModule.
This sample maybe helpful, it shows Auth window
https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config

Slack App API - Can I subscribe to and monitor all #username mentions for the current user?

When someone mentions a specific username by their handle in Slack, the user typically gets notified about that mention by Slack. I would like to make a Slack app that subscribes to those notifications for the current user. Any time a user gets notified that they were directly mentioned, I'd like to be informed of that in my app, along with the contents of that message.
I've looked through the API docs for quite a while and I can't seem to find support for this functionality. Am I missing something? Can this be done?
There is no event in the Slack Event API that handles mentions of users (although if you create a slack bot you can handle mentions of the slack bot's user with the app_mention event).
You can still listen for the message event and manually look through the text for any #UserMentions and handle them there. Note that this will only work for channels that the Slackbot has been granted access to.

Resources