[英]iOS: Open Facebook native app from UIWebView share link
In my iOS Application, i have a list of weblinks which are coming from server. 在我的iOS应用程序中,我有来自服务器的Web链接列表。 when I click anyone of it it open that link in a new UIWebView. 当我单击其中的任何一个时,它将在新的UIWebView中打开该链接。 In that link there can be facebook share buton or many other social network sharing button. 在该链接中可以有Facebook分享按钮或许多其他社交网络分享按钮。
When I click on facebook share then it opens the facebook share screen inside the same UIWebView but what I want is whenever any facebook share button is pressed from any link then it should open my native application share thing. 当我单击Facebook共享时,它将在同一UIWebView内打开Facebook共享屏幕,但是我想要的是每当从任何链接中按下任何Facebook共享按钮时,它将打开我的本机应用程序共享。
How can I do it? 我该怎么做? Need help 需要帮忙
您可以使用iOS的facebook SDK, 开发人员的Facebook ,确保在info.plist或TARGET-> Info-> URL Types中设置URLShemes,以便可以在自己的应用程序中打开本机facebook应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.