cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

PVA on Facebook Messenger

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

6 REPLIES 6
Highlighted
Super User
Super User

Re: PVA on Facebook Messenger

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. 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Power Virtual Agents course (FREE): https://www.udemy.com/pva-beginners
Highlighted
Regular Visitor

Re: PVA on Facebook Messenger

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.

 

Regards,

Ruben

 

 

Highlighted
Super User
Super User

Re: PVA on Facebook Messenger

Hi @rubcosta ,

 

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-... 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Power Virtual Agents course (FREE): https://www.udemy.com/pva-beginners
Highlighted
Regular Visitor

Re: PVA on Facebook Messenger

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? 

 

Regards,

Ruben

 

Highlighted
Super User
Super User

Re: PVA on Facebook Messenger

Hi @rubcosta ,

 

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. 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Power Virtual Agents course (FREE): https://www.udemy.com/pva-beginners
Highlighted
Regular Visitor

Re: PVA on Facebook Messenger

@renatomorao,

 

Ok, I got it! Thanks for the help 😉

 

Regards,

Ruben

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

PVA Community Highlights

June 2020 Community Highlights

Read up on the recent Power Virtual Agents Community news.

PVA Thumb

Video of the Week

Show/Hide Bots (PVA) In Users Preferred Language on Power Apps Portals

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (8,018)