FBSDKShareLinkContent is not setting the contentDescription and contentTitle

前端 未结 4 2128
广开言路
广开言路 2021-02-18 21:48

I am trying to share a link on the Facebook using FBSDKShareLinkContent.

I have set the URL, description and title. SDK is automatically populates the titl

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-18 22:08

    I tried this code and it works perfectly on my virtual device, until I setted up Facebook account in setting of phone. After I set that, every time that I want to open dialog was opened default iOS social share dialog. Delete your account, if it exist in settings, or just install FB application, in documentation I saw that we need FB app for sharing.

    If this will not help, you can always use Social Share framework of iOS, here is the example.

    http://www.appcoda.com/ios-programming-101-integrate-twitter-and-facebook-sharing-in-ios-6/

    Hope this will help, by the way, today I stack on this problems too, now every thing working great with this Social Sharing framework of iOS.

提交回复
热议问题