在浏览器或本机应用程序中打开Facebook页面链接IOS cordova

问题描述:

上一个关于这个相似话题的问题对我来说是无效的,其中大部分都没有得到回应。

Previous question on this similar topic isn't working for me and most of them are unanswered.

我想把用户带到一个Facebook页面,点击按钮。
更新的Facebook安装在iphone中,最新的cordova已安装,使用inappbrowser插件。
现在我的代码是

I want to take the user to a facebook page with button click. Updated facebook is installed in iphone, latest cordova is installed, inappbrowser plugin is used. Now my code is

window.open('https://www.facebook.com/latechnologies', '_system','location=yes');

这在Android上完美无瑕。但在IOS链接被国家的Facebook应用程序捕获,并带我到Facebook的墙上使用不是页面的feed。这意味着它只是打开本机应用程序,但不要访问任何页面。

This works perfectly on android. But in IOS link is catched by nation facebook app and take me to the facebook wall of the use not the page feed. That means it just open the native app,but don't take to any page.

然后我搜索并尝试了一些建议

Then I searched, and tried some suggestions

window.open('fb://facebook.com/latechnologies', '_system','location=yes');

window.open('fb://pages/latechnologies', '_system','location=yes');

window.open('fb://pages', '_system','location=yes');

他们都没有工作。每次都需要用户墙。如何把用户带到Facebook页面?本机应用或浏览器并不重要。只是想把用户带到页面.....................

None of them are working. Every time it takes to the user wall. How can I simply take the user to the facebook page? Native app or browser doesn't matter. Just want to take the user to the page.....................

对于我使用Facebook页面标识而不是页面名称工作正常,例如

For me using the Facebook page id instead of the page name works fine, e.g.

window.open('https://www.facebook.com/1401408870089080', '_system');