gpt4 book ai didi

ios - 如何将 og.likes 操作类型与产品对象类型一起使用?

转载 作者:行者123 更新时间:2023-11-30 12:32:26 25 4
gpt4 key购买 nike

og.likes 操作类型可以与 product 对象类型一起使用吗?

使用此代码:

let properties = [
"og:type": "product",
"og:title": "Test Product",
"og:description": "Product description"
]

let object = FBSDKShareOpenGraphObject(properties: properties)

let action = FBSDKShareOpenGraphAction()
action.actionType = "og.likes"
action.setObject(object, forKey: "product")

let content = FBSDKShareOpenGraphContent()
content.action = action
content.previewPropertyName = "product"

FBSDKShareDialog.show(from: self, with: content, delegate: nil)

我收到错误:

“Action Requires At Least One Reference: The action you’re trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: object.

如果我将 product 替换为 object 它可以工作,但我不想使用通用对象。

最佳答案

“og.likes”操作类型的参数键只是名称“object” Screenshot from Facebook Reference

关于ios - 如何将 og.likes 操作类型与产品对象类型一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43336880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com