通过REST构建的Firebase动态链接指定社交预览信息

时间:2019-07-16 23:35:53

标签: firebase firebase-dynamic-links

我正在生成dynamic link via REST API

但是我想包含social preview info

如何包含

的值
  

st,sd,si

这是我的请求正文

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

1 个答案:

答案 0 :(得分:0)

在检查了一些示例并检查了data explorer之后,此处介绍了如何构建用于社交预览的正文:

{
"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"
},
}