如何在Swift中为Facebook上的分享视频附加PlaceID?

时间:2017-09-27 09:23:48

标签: ios swift facebook facebook-graph-api google-places-api

当用户点击自定义共享UIButton()时,我正试图在Facebook上分享视频。

let video = Video(url: videourl)

var content = VideoShareContent(video: video)

// If I am removing this line, its upload to Facebook.
content.placeId = "166793820034304"    //Custom placeId

let sharer = GraphSharer(content: content)
sharer.failsOnInvalidData = false

do {
    try sharer.share()
} catch let err {
    print(err.localizedDescription)
}

sharer.completion = { FBresult in

    switch FBresult {
    case .failed(let error):
        print(error)
        break
    case .success(_):
        print("Uploaded")
        break
    default:
        break
    }
}

使用place / placeId在Facebook上分享视频的解决方案是什么?

0 个答案:

没有答案