菜鸟教程小白 发表于 2022-12-12 09:15:02

ios - 通过 SLRequest 代表用户点赞 Facebook 页面?


                                            <p><p>我目前正在使用 SLRequest 让用户喜欢我们的应用页面以换取虚拟货币/新角色。我需要设置哪些参数才能允许这样做?我已经获得了 public_actions 权限。</p>

<p>我找到了以下内容,但我仍然不知道该怎么做:<a href="https://developers.facebook.com/docs/opengraph/guides/og.likes" rel="noreferrer noopener nofollow">https://developers.facebook.com/docs/opengraph/guides/og.likes</a> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>如果您阅读本文 <a href="https://developers.facebook.com/docs/opengraph/guides/og.likes" rel="noreferrer noopener nofollow">documentation</a> ,它说-</p>

<blockquote>
<p>The <strong><code>og.likes</code></strong> action can refer to any open graph object or URL, except for Facebook Pages or Photos.</p>
</blockquote>

<p>因此,用 Graph API 点赞页面是不可能的。</p>

<p>我认为你只有两种选择-</p>

<ol>
<li><p>您可以在 FB 应用程序中加载 FB 页面,并使用户能够从那里喜欢该页面。</p>

<pre><code>[ openURL:];
</code></pre> </li>
<li><p>您可以使用 <code>UIWebView</code> 并添加 <a href="https://developers.facebook.com/docs/plugins/like-button/" rel="noreferrer noopener nofollow">Like Button</a> . </p></li>
</ol>

<p>您也可以查看:<a href="https://github.com/brow/FacebookLikeView" rel="noreferrer noopener nofollow">FacebookLikeView</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 通过 SLRequest 代表用户点赞 Facebook 页面?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/22955545/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/22955545/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 通过 SLRequest 代表用户点赞 Facebook 页面?