Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    channelCustomProperties for Facebbok channel
    Topic posted August 22, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, last edited August 28, 2018, tagged Bots, Conversational AI, Messaging 
    68 Views, 3 Comments
    Title:
    channelCustomProperties for Facebbok channel
    Summary:
    Cards are not displayed on Facebbok channel.
    Content:

    I'm using "System.CommonResponse" component to show cards with a description and url action. my problem is that the description displayed is missing some text.

    I used the metadata propertie "channelCustomProperties" like in below. 

    cardResponse:
        component: "System.CommonResponse"
        properties:
          metadata: 
            responseItems:         
            - type: "cards"  
              cardLayout: "vertical"
              cards:
              - title: "${offers.title}"
                description: "${offers.description}"
                iteratorVariable: "offers" 
                # actions defined here are added to the card.  
                actions: 
                - label: "Details"
                  # action type allowable values are: postback, url, share, call, location.
                  type: "url"
                  payload: 
                    url: "${offers.url}"
              channelCustomProperties:
              - channel: "facebook"
                properties:
                  top_element_style: "large"
          processUserMessage: false          
        transitions:
          return: "done"      

    but I received nothing despite that on BotUI test i get the right answer.

    Image:

    Comment

     

    • Frank Nimphius

      Would it work better without the channel specific property?

       

      Frank

      • Ameur Baccoucha

        when i add the channel specific property i get nothing in the fb messenger (in the botui tester i get everthing work great).
        and what i get without the channel specific property is what you see in the image 
        above.
         

        Ameur

        • Sharath Chandra Gavini

          Hi Ameur,

          If you still wonder about this, I don't think there is any problem in your Code. There is a limitation to the number of characters that are displayed on any of the facebook templates, that is why you see an ellipsis indicating that the text is continued. 
          There is no such limitation in Oracle's Bot Tester and hence we can see the text in full length. 
          I suppose you are using Open Graph Template and the maximum length supported is 80 characters.
          (refer this: https://developers.facebook.com/docs/messenger-platform/reference/template/open-graph/#properties)

          You can find the limit mentioned at the end of the page in elements' properties.
          Regards,
          Sharath Chandra Gavini.