Facebook Chatbot: Elenco modelli non risponde immagine di copertina

voti
0

Sto verificando modello di elenco da Facebook Messenger Platform.

Facebook collegamento del documento

Il modello di elenco non funziona come mi aspettavo. Si prega di fare riferimento al mio codice qui sotto (nodejs):

function sendInfoMessage(sender){
let messageData = 
{
    attachment: {
        type: template,
        payload: {
            template_type: list,
            top_element_style: large,
            elements: [{
                    title: Coffee & Chat,
                    image_url: https://ak3.picdn.net/shutterstock/videos/3567512/thumb/1.jpg,
                    subtitle: A place for students,
                    buttons: [{
                        title: View,
                        type: web_url,
                        url: https://en.wikipedia.org/,
                        webview_height_ratio: tall
                    }]
                },
                {
                    title: Classic White T-Shirt,
                    image_url: https://static.pexels.com/photos/20787/pexels-photo.jpg,
                    subtitle: 100% Cotton, 200% Comfortable,
                    buttons: [{
                        title: Shop Now,
                        type: web_url,
                        url: https://www.google.co.uk/,
                        webview_height_ratio: tall
                    }]
                }
            ]
        }
    }
}


sendRequest(sender, messageData)
}

Risultato: Chatbot risposto un elenco pianura un'immagine di copertina a meno.

Chiunque ha affrontato questo problema e ha soluzione, ti prego, aiutami.

È pubblicato 07/07/2017 alle 15:29
fonte dall'utente
In altre lingue...                            


1 risposte

Facebook Chatbot: Elenco modelli non risponde immagine di copertina

voti
0

Sto verificando modello di elenco da Facebook Messenger Platform.

Facebook collegamento del documento

Il modello di elenco non funziona come mi aspettavo. Si prega di fare riferimento al mio codice qui sotto (nodejs):

function sendInfoMessage(sender){
let messageData = 
{
    "attachment": {
        "type": "template",
        "payload": {
            "template_type": "list",
            "top_element_style": "large",
            "elements": [{
                    "title": "Coffee & Chat",
                    "image_url": "https://ak3.picdn.net/shutterstock/videos/3567512/thumb/1.jpg",
                    "subtitle": "A place for students",
                    "buttons": [{
                        "title": "View",
                        "type": "web_url",
                        "url": "https://en.wikipedia.org/",
                        "webview_height_ratio": "tall"
                    }]
                },
                {
                    "title": "Classic White T-Shirt",
                    "image_url": "https://static.pexels.com/photos/20787/pexels-photo.jpg",
                    "subtitle": "100% Cotton, 200% Comfortable",
                    "buttons": [{
                        "title": "Shop Now",
                        "type": "web_url",
                        "url": "https://www.google.co.uk/",
                        "webview_height_ratio": "tall"
                    }]
                }
            ]
        }
    }
}


sendRequest(sender, messageData)
}

Risultato: Chatbot risposto un elenco pianura un'immagine di copertina a meno.

Chiunque ha affrontato questo problema e ha soluzione, ti prego, aiutami.

Risposto il 07/07/2017 a 15:29
fonte dall'utente

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more