skip to Main Content

I tried using the generic template, but it does not animate the GIF – this is needed for showing a ‘Powered by Giphy’ banner in the bottom of the card – like image below.

animated GIF received in a messenger card/bubble

2

Answers


  1. You have to send an attachment of image instead of a generic template, like this:

    curl -X POST -H "Content-Type: application/json" -d '{
      "recipient":{
        "id":"USER_ID"
      },
      "message":{
        "attachment":{
          "type":"image",
          "payload":{
            "url":"https://petersapparel.com/img/shirt.png"
          }
        }
      }
    }' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"
    

    Check out this page: https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment

    Login or Signup to reply.
  2. Two bubbles. First is the image, the second is the advert.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search