Notifications
Announcements
Hi all!
I have integrated my bot with Facebook Messenger and it works. But now, how can I get the userID and the user name that is talking with my bot? And, I can I show template messages to my users (buttons, a carrousel, media content)? Do I need to do POST requests to Facebook API?
Thanks for the help,
Regards,
Ruben
Hi @rubcosta ,
1- You can use the Username and the userId with Authentication inside the Azure.
https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication
Or you can create an idea inside the forum to get by default these properties: https://aka.ms/pva/community/ideas
2- Maybe you can use the markdown inside the messages integrated to Power Automate, but you can get some limitations inside the Facebook message. https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support
Or you can use the PVA questions to show buttons.
3- No, you will use only the chat inside the Facebook messenger. If you want to advance inside the Facebook connections, you can integrate with Power Automate to realize some POST requests.
Hi @renatoromao,
Thanks for the answer. I already see this answer in another topic and I also saw your videos. But to be honest, for me does not make any sense I need to authenticate a user that should be already authenticated. I mean, if you are in your Messenger app of your mobile talking with the bot, the bot needs to have soma basic information about the user, and information like id and the name, they need to have! I already tested another bot platforms and they have it! So for me, need to show a login button to user and authenticate the user, don't make sense. I'm Portuguese, we can have this discussion in Portuguese if you want.
About the Facebook Template messages, the only way that I have is to use the Facebook API. BUT using Facebook API to show buttons, I will not have the same behavior that we have if we use PVA questions to show buttons. Unfortunately, PVA questions just show Quick Replies in Messenger.
One more time, if you want to have this conversation in Portuguese, for me it's ok and I will appreciate getting some help to resolve these simples things.
Great, I'm very happy to see another Brazilian guy to do a lot of things using PVA! 😄
I will send in English to help more people, but I appreciate your availability.
Regarding the User properties, I agree with you that using PVA chatbot has some limitations comparing to use of other chatbots. But I think that Microsoft is improving the services and this product with the user's feedback.
I recommend you post an idea because if get many votes, Microsoft can prioritize this feature inside the Roadmap.
https://aka.ms/pva/community/ideas
Regarding the Facebook Templates, today you just can use fixed options using Entities or fixed inside Questions into the PVA, not getting the data from Facebook or another database. You can create this idea too inside the Ideas portal.
And I recommend you to follow this documentation to look at which features Microsoft will prioritize in the Roadmap.
https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave2/power-virtual-agents/planned-features
Hi @rentomorao,
Just to ensure that I understood your fist answer: If I use the Authentication node, I can get the name and the ID of the user, provided by the Facebook? And after that, can I do the POST requests to the Facebook API to show, for example, carrousels?
It's a difficult way, but yes, you can do it.
https://docs.microsoft.com/en-us/power-virtual-agents/configuration-end-user-authentication
And you can use the POST API with Facebook using Power Automate, but you cannot show like options that users select because today you can just show options fixed inside PVA.
@renatomorao,
Ok, I got it! Thanks for the help 😉
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 261 Super User 2025 Season 2
Romain The Low-Code... 198 Super User 2025 Season 2
S-Venkadesh 93 Moderator