I was going through Facebook docs from FBLink , and searching api to make post through my app. But with the provided apis from Facebook i can see that we can post but needs to add content. eg,
import FacebookShare
let shareDialog = ShareDialog(content: myContent)
shareDialog.mode = .Native
shareDialog.failsOnInvalidData = true
shareDialog.completion = { result in
// Handle share results
}
try shareDialog.show()
Can't we post without content?
eg:
var myContent = LinkShareContent(url: URL(string: "https://www.facebook.com/quynhbkhn")!)
myContent.title = "share title";
myContent.description = "share description";
myContent.imageURL = URL(string: "https:yourimage.png")
myContent.hashtag = Hashtag("#yourhashtag")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.