2017-07-06 2 views
0

Ich ging durch Facebook Dokumente von FBLink, und Suche api, um Post über meine App zu machen. Aber mit der mitgelieferten API von Facebook kann ich sehen, dass wir Inhalte posten können. z. B.iOS in FBSDKShareDialog können wir ohne Inhalt teilen

import FacebookShare 

let shareDialog = ShareDialog(content: myContent) 
    shareDialog.mode = .Native 
    shareDialog.failsOnInvalidData = true 
    shareDialog.completion = { result in 
    // Handle share results 
} 

try shareDialog.show() 

Können wir nicht ohne Inhalt posten?

Antwort

0

zB:

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") 
Verwandte Themen