gpt4 book ai didi

javascript - 使用 JavaScript 获取 Facebook 页面点赞

转载 作者:行者123 更新时间:2023-12-03 02:09:45 25 4
gpt4 key购买 nike

为了获取 Facebook 页面的点赞,我尝试了以下代码

<div class="fb-like" data-href="https://www.facebook.com/champstest" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>


<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.12&appId=148617302637200&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

还提到了How can i get the Facebook page like count without login?

返回以下错误

{
"error": {
"message": "(#200) Access to this data is temporarily disabled for non-active apps or apps that have not recently accessed this data due to changes we are making to the Facebook Platform. https://developers.facebook.com/status/issues/205942813488872/",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "EzzXKz0aYcY"
}
}

最佳答案

Facebook API 目前已降级,目前可能无法使其正常工作。

We are pausing all new messaging experiences (including new authentications on approved apps) on the platform while we review our policies and make necessary adjustments.

来源:https://developers.facebook.com/status/issues/104197713763517/

关于javascript - 使用 JavaScript 获取 Facebook 页面点赞,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49631529/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com