2017-04-05 49 views
0

我发送旋转木马消息以接吻,旋转木马呈现为接吻中的文本,但在Facebook信使旋转木马中呈现。需要在接吻网络messanger旋转木马。发送旋转木马消息但将其呈现为文本描述链接

这里是JSON

msg = { 
"role": 'appMaker', 
"type": 'carousel', 
"items": [{ 
    "title": 'Tacos', 
    "description": 'Description', 
    "mediaUrl": 'https://example.com/img.png', 
    "actions": [{ 
     "text": 'Select', 
     "type": 'postback', 
     "payload": 'TACOS' 
    }, { 
     "text": 'More info', 
     "type": 'link', 
     "uri": 'https://example.com' 
    }] 
}, { 
    "title": 'Ramen', 
    "description": 'Description', 
    "mediaUrl": 'https://example.com/img.png', 
    "actions": [{ 
     "text": 'Select', 
     "type": 'postback', 
     "payload": 'RAMEN' 
    }, { 
     "text": 'More info', 
     "type": 'link', 
     "uri": 'https://example.com' 
    }] 
}] 
} 

回答

0

在写这篇文章的时候,旋转木马的消息目前不支持对接吻的SDK(网页版Messenger,iOS版和Android)。请参阅Post Carousel Message API文档中的Channel Support部分,以获取有关轮播在每个频道上如何呈现的详细信息。

您还可以使用Smooch channel capabilities grid获取跨渠道功能支持的概览信息。对于那些标记为“部分渠道支持”的用户,这意味着轮播将呈现文本回退,正如您所描述的那样。

+0

仍然不支持Web SDK中的Carousel? – Rhangaun