菜鸟教程小白 发表于 2022-12-12 11:42:18

android - 使用 URL 方案在 Facebook 应用程序中共享


                                            <p><p>我正在尝试创建一个 HTML 链接 <a href="https://stackoverflow.com/q/10227370/2684718" rel="noreferrer noopener nofollow">shares a text through the Facebook app using URL scheme</a> .手机、Android 和 iOS 均可访问此链接。</p>

<pre><code>&lt;a href=&#34;fb://publish/?text=http://google.com&#34;&gt;Share&lt;/a&gt;
</code></pre>

<p>当我在我的 Android 手机上单击此链接时,Facebook 应用程序打开但什么也不做!这里有什么问题?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>Facebook URL Schemes 变化很大,而且它们的功能通常没有很好的文档记录。曾尝试将它们编目在
<a href="https://stackoverflow.com/questions/5707722/what-are-all-the-custom-url-schemes-supported-by-the-facebook-iphone-app" rel="noreferrer noopener nofollow">What are all the custom URL schemes supported by the Facebook iPhone app?</a> </p>

<p>如果您可以在浏览器中打开对话框,您可以使用共享对话框:</p>

<p> <a href="https://developers.facebook.com/docs/sharing/reference/share-dialog" rel="noreferrer noopener nofollow">https://developers.facebook.com/docs/sharing/reference/share-dialog</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于android - 使用 URL 方案在 Facebook 应用程序中共享,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/36600391/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/36600391/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: android - 使用 URL 方案在 Facebook 应用程序中共享