简体   繁体   中英

How to open an iOS Application from Facebook,Twitter and Google+ posts which are shared from the iOS application using UIActivityViewController?

我已经从iOS应用程序向Facebook,Google +和Twitter分享了一些帖子。当用户单击我分享的帖子时,如何打开我的应用程序?我使用UIActivityViewController进行分享。

For Facebook you should use app links: https://developers.facebook.com/docs/applinks/ios . You can host links to your app with their hosting - https://developers.facebook.com/quickstarts/?platform=app-links-host For Twitter you should use https://dev.twitter.com/cards/mobile/deep-linking but need the server side(hosting) with tags for link. Also, with default UIActivityViewController you cant do this.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM