Branch.io不提供Facebook的预览,在LinkedIn和Twitter上工作。

问题描述 投票:0回答:1

我正在使用 branch.io 进行分享。当我在Facebook上分享时,不给一个预览。同样的工作在Linkedin和Twitter上

**let buo1 = BranchUniversalObject.init(canonicalIdentifier: "https:/appName.app.link(videoId))")

    buo1.title = "#I am a magnet - watch this magnet video on appName."
    //buo.contentDescription = "My Content Description"
    buo1.imageUrl = imageUrl
    buo1.publiclyIndex = true
    buo1.locallyIndex = true
    buo1.contentMetadata.customMetadata["key1"] = "value1"

    let lp: BranchLinkProperties = BranchLinkProperties()
    lp.channel = "whatsapp"
    lp.channel = "Twitter"
    lp.channel = "LinkedIn"
    lp.channel = "instagram"
    lp.channel = "Mail"
    lp.channel = "Facebook"
    lp.feature = "sharing"
    lp.campaign = "content 123 launch"
    lp.stage = "new user"
    lp.tags = ["four", "five", "six"]

    lp.addControlParam("$desktop_url", withValue: "https://appName.app.link/desktop")
    lp.addControlParam("$ios_url", withValue: "https://appName.app.link/ios")
    lp.addControlParam("$ipad_url", withValue: "https://appName.app.link/ios")
    lp.addControlParam("$android_url", withValue: "https://appName.app.link/android")
    lp.addControlParam("$match_duration", withValue: "2000")**
swift sharing branch.io
1个回答
0
投票

Facebook按照OG标签搜刮链接。在你的BUO对象中,请添加必要的OG标签属性,这样图片就可以正确渲染。

这里是文档链接,你可以参考自定义OG标签--。https:/help.branch.iousing-branchdocscreating-a-deep-link#section-open-graph。

© www.soinside.com 2019 - 2024. All rights reserved.