Ad

Firebase Dynamic Links Constructed Via REST Specify Social Preview Info

- 1 answer

Im generating a dynamic link via REST API

but I want to include the social preview info

How to include the values for

st, sd, si

this is the body of my request

{
    "dynamicLinkInfo": {
    "domainUriPrefix": "https://wi.page.link",
    "link": "https://wiapp.com.au/faq/123",
    "iosInfo": {
      "iosBundleId": "com.directnance.sr"
    }
    },
    "suffix": {
     "option":"UNGUESSABLE"
    },
}
Ad

Answer

After checking some examples and checking data explorer, here how to construct the body for social preview:

{
"dynamicLinkInfo": {
"domainUriPrefix": "https://wi.page.link",
"link": "https://wi.com.au/faq/123",
"iosInfo": {
  "iosBundleId": "com.dirnance.Wr"
},
  "socialMetaTagInfo" :{
  "socialImageLink":"https://vignette.wikia.nocookie.net/doraemon/images/b/b8/Doraemon_2005.PNG/revision/latest?cb=20151207094313&path-prefix=en",
  "socialTitle":"my titu",
  "socialDescription":"descripotio"
  }  

},
"suffix": {
 "option":"UNGUESSABLE"
},
}
Ad
source: stackoverflow.com
Ad