我正在尝试在iOS应用中创建Facebook自定义故事。我正在开发Swift应用程序。
var graphObject: NSMutableDictionary = FBGraphObject.openGraphObjectForPostWithType(
"app: type",
title: "new",
image: nil,
url: nil,
description: "description"
)
(I am getting a runtime error on the following line)
**var graphAction: FBOpenGraphAction = FBGraphObject.graphObject() as FBOpenGraphAction**
graphAction.setObject(UIImage(named: "default"), forKey: "image")
graphAction.setObject(graphObject, forKey: "break")
我在宣布FBOpenGraphAction时做错了什么?任何帮助,将不胜感激。
由于