Question

FB Messenger to Bot Integration is not working

I have made the configuration required for Fb messenger to Bot integration.

Webhooks, Messenger setting. etc. Now when i send message to my FB page, i get the below error

2019-04-21 13:36:02,811 [se-nio2-9443-exec-10] [ STANDARD] [ ] [ IWellcare:01.01.01] (el_Interaction_Facebook.Stream) ERROR ip-172-31-11-190.ec2.internal|127.0.0.1|HTTP|channel|srv|fblogin|ASAV9EVS3K10VX41KBFIBA2I1188LRQELA - Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'.

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.performStream_4(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:591) ~[?:?]

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:111) ~[?:?]

2019-04-21 13:36:02,813 [se-nio2-9443-exec-10] [ STANDARD] [ ] [ IWellcare:01.01.01] (e.internal.ServiceMappingUtils) ERROR ip-172-31-11-190.ec2.internal|127.0.0.1|HTTP|channel|srv|fblogin|ASAV9EVS3K10VX41KBFIBA2I1188LRQELA - Caught unexpected exception mapping outbound data: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

2019-04-21 13:36:02,813 [se-nio2-9443-exec-10] [ STANDARD] [ ] [ IWellcare:01.01.01] (el_Interaction_Facebook.Stream) ERROR ip-172-31-11-190.ec2.internal|127.0.0.1|HTTP|channel|srv|fblogin|ASAV9EVS3K10VX41KBFIBA2I1188LRQELA - Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'.

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.performStream_4(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:591) ~[?:?]

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:111) ~[?:?]

2019-04-21 13:36:02,814 [se-nio2-9443-exec-10] [ STANDARD] [ ] [ IWellcare:01.01.01] (e.internal.ServiceMappingUtils) ERROR ip-172-31-11-190.ec2.internal|127.0.0.1|HTTP|channel|srv|fblogin|ASAV9EVS3K10VX41KBFIBA2I1188LRQELA - Caught unexpected exception mapping outbound data: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

2019-04-21 13:36:02,814 [se-nio2-9443-exec-10] [ STANDARD] [ ] [ IWellcare:01.01.01] ( internal.services.ServiceAPI) ERROR ip-172-31-11-190.ec2.internal|127.0.0.1|HTTP|channel|srv|fblogin|ASAV9EVS3K10VX41KBFIBA2I1188LRQELA - HTTP service [channel][srv][fblogin] failed:Outbound data mapping failed:com.pega.pegarules.pub.services.ServiceException: Outbound data mapping failed

Caused by: com.pega.pegarules.pub.PRException: Caught unexpected exception mapping outbound data: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

Caused by: com.pega.pegarules.pub.PRRuntimeException: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:117)

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.performStream_4(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:591)

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:111)

Caused by: com.pega.pegarules.pub.PRException: Caught unexpected exception mapping outbound data: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

Caused by: com.pega.pegarules.pub.PRRuntimeException: Section 'fbLogin' execution error on page 'WorkPage' of class 'Work-Channel-Interaction-Facebook'. : null

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:117) ~[?:?]

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.performStream_4(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:591) ~[?:?]

at com.pegarules.generated.html.ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.execute(ra_stream_fblogin_65975c40ecff27d16f6f305604a08e43.java:111) ~[?:?]

I haven't modified the OOTB Service HTTP - channel • srv • fblogin

which calls fbInitLogin activity and response is html stream fblogin.

Do i need to make any changes ? Any help would be appreciated.

Been asking about this for a long time didn't get proper help . Please do enlighten me .

My RS stack has Facebook Channel RS added too.

Not sure what am i missing.

Comments

Keep up to date on this post and subscribe to comments

April 23, 2019 - 10:01am

Any Help ? I tried calling the Process Activity called "fbPrcoess" - but getting invalid URL Error.  Which will is used to connect-Rest for message activity. But it comes as blank. 

#Help

Pega
April 24, 2019 - 9:36am

Hi,

What version of Pega are you running? You should not have to make any changes to the OOTB configuration. Are you trying to authenticate within the channel?

Thanks,

-Skye

April 24, 2019 - 2:35pm
Response to perrs

Hi, 

We are on 8.1.2 . As per the customer implementation document, it said to use a HTTP service of method fb. We tried that we got URL is blak issue. 

 the Callback URL is not all getting verified by the messenger webhook. 

There are two HTTP Service, one is FBLogin - which got verified and another one is fb which is not getting verified.