Q&A

How to Fix Flex Image Not Show

how to fix image not show after https://api.line.me/v2/bot/message/broadcast

this image link https://ddpm.we-builds.com/ddpm-document/images/news/line.png

(HTTPS over TLS 1.2 or later JPG, JPEG, or PNG)

i try resolve problem. pls help me. thank you sir.

this json

{ "to": null, "messages": [ { "type": "flex", "altText": "Flex Message", "contents": { "type": "bubble", "hero": { "type": "image", "url": "https://ddpm.we-builds.com/ddpm-document/images/news/line.png" }, "body": { "type": "box", "layout": "vertical", "spacing": "sm", "contents": [ { "type": "text", "text": "Arm Chair, White", "size": "xl", "weight": "bold", "wrap": true }, { "type": "box", "layout": "baseline", "contents": [ { "type": "text", "text": "$49", "flex": 0, "size": "xl", "weight": "bold", "wrap": true }, { "type": "text", "text": ".99", "flex": 0, "size": "sm", "weight": "bold", "wrap": true } ] } ] }, "footer": { "type": "box", "layout": "vertical", "spacing": "sm", "contents": [ { "type": "button", "action": { "type": "uri", "label": "Add to Cart", "uri": "https://linecorp.com" }, "style": "primary" }, { "type": "button", "action": { "type": "uri", "label": "Add to whishlist", "uri": "https://linecorp.com" } } ] } } } ] }

  • 0
  • 1
  • 1392
  • twitter facebook

I think, you don't need to:null, because broadcast message means send all friends. Please check broadcast message API below. https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message

  • 0
本当によろしいですか? question.vm