简体   繁体   English

iOS:通过UIWebView共享链接打开Facebook本机应用程序

[英]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.

相关问题 在 iOS 上通过本机 Facebook 应用程序打开 Facebook 链接 - Open a facebook link by native Facebook app on iOS 如何在不使用本机ios应用程序的FBSDKShareDialog的情况下在Facebook墙上共享照片或链接 - how to share a Photo Or link on facebook wall without using FBSDKShareDialog from native ios app 从Facebook Feed打开本机iOS应用 - Open native iOS app from Facebook feed 从 iOS 应用打开 Facebook 页面的链接 - Open link to Facebook page from iOS app 从UIWebView中的链接打开iOS6 Apple Maps应用程序 - Open iOS6 Apple Maps app from a link in a UIWebView 是否可以生成一个“在 Facebook 上分享”链接,在 Android/iOS/手机上打开原生 Facebook 应用程序而不是网络共享对话框? - Is it possible to generate a 'share on Facebook' link that opens the native Facebook App on Android/iOS/mobile instead of the web share dialog? 如何从网页上的链接打开本机 iOS 共享模式? - How to open the native iOS share modal from a link on a webpage? 在浏览器或本机应用程序中正确打开Facebook页面链接IOS cordova - Open facebook page link in browser or native app correctly IOS cordova 如何从iOS上的本机Facebook应用程序在Safari中打开移动Web应用程序链接? - How to open mobile webapp link in Safari from native Facebook app on iOS? 从打包为原生iOS应用的Web应用打开外部链接 - Open external link from web app packaged as native iOS app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM