printf("%f %f %f \n", circleptr[i]->x, circleptr[i]->y, circleptr[i]->z);
操作类型是否可以与og.likes
对象类型一起使用?
使用此代码:
product
我收到错误:
“操作需要至少一个参考:您尝试发布的操作无效,因为它未指定任何参考对象。必须至少指定以下属性之一:object。
如果我将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)
替换为product
它可以正常工作,但我不想使用通用对象。