2017-07-06 10 views
0

私はFacebookドキュメントをFBLinkから探していて、アプリを検索してapiを検索しました。しかし、Facebookから提供されたapisを使って私は投稿できるが、コンテンツを追加する必要があることがわかります。例:FBSDKShareDialogのiOSをコンテンツなしで共有することができます

import FacebookShare 

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

try shareDialog.show() 

コンテンツなしで投稿できませんか?

答えて

0

例:

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") 
関連する問題