ios - Ionic 无法从应用程序打开 facebook 个人资料页面
<p><p>我想在 <code>ionic</code> 应用程序中打开与用户对应的 Facebook 个人资料页面。我使用 <code>cordovaInAppBrowser</code> 插件。</p>
<pre><code>url = 'fb://profile/vahid.vdn';
var options = {
location: 'yes',
clearcache: 'yes',
toolbar: 'yes'
};
$cordovaInAppBrowser.open( url, '_system', options ).then(function(event) {
// facebook app is already installed and opened successfully
})
.catch(function(event) {
// facebook app isn't installed in this device
url = 'https://facebook.com/vahid.vdn'
$cordovaInAppBrowser.open( url, '_system', options );
}
</code></pre>
<p>这只是在 Facebook 应用程序中打开 Facebook 的主页。 (平台:<strong>iOS</strong>)</p>
<p>有什么想法吗?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>在 Facebook 上试试这个,</p>
<pre><code>url = 'fb://profile?id=vahid.vdn';
</code></pre></p>
<p style="font-size: 20px;">关于ios - Ionic 无法从应用程序打开 facebook 个人资料页面,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/44139929/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/44139929/
</a>
</p>
页:
[1]