[英]Get number of likes on facebook page
i want to get count of likes on a facebook page using javascript SDK.我想使用 javascript SDK 在 facebook 页面上获得点赞数。 i am using...
我在用...
FB.api(
"/pageID/likes",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
returns: {message: "An access token is required to request this resource.", type: "OAuthException", code: 104,…}返回:{消息:“请求此资源需要访问令牌。”,类型:“OAuthException”,代码:104,...}
How to get access token?如何获取访问令牌? Thanks in Advance!
提前致谢!
This link can help you. 这个链接可以帮助你。 When you use an API you always need to have a token to be allowed to request it.
当您使用 API 时,您总是需要有一个令牌才能请求它。 Facebook have a platform to sign-in and get a token.
Facebook有一个平台可以登录并获取令牌。 Facebook have a full documentation here .
Facebook 有一个完整的文档here 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.