获取特定 URL 和页面的 FB 点赞数 [英] Get FB likes count for specific URL and page

查看:23
本文介绍了获取特定 URL 和页面的 FB 点赞数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个二合一的问题.

This is a two questions in one.

  1. 是否有可能获得网站内特定页面的点赞数?就像如果有一个没有特定目标 url 的喜欢按钮一样,喜欢将给 window.location.href 中的地址;可以在没有 API 密钥的情况下检索此号码吗?

  1. Is it possible to get the likes count to a specific page inside a website? As in if there's a like button without a specific target url, likes will be given to the address in the window.location.href; can this number be retrieved without an API key?

如果我只有网站的 URL,是否可以获取官方 Facebook 页面/页面 ID?如果我只有 URL/域名 (coca-cola.com),我可以获取 https 的 facebook 页面://www.facebook.com/cocacola?

Is it possible to get the official Facebook page/page id if I only have the URL of the website? If i only have the URL / domain name (coca-cola.com), can I get the facebook page which is https://www.facebook.com/cocacola?

推荐答案

您可以通过调用 Graph 来查看网站的点赞数,如下所示:

You can check the like count of a website by calling the Graph like the following:

https://graph.facebook.com/?ids=http://www.your-website.com/the-url-or-so

对于您的问题,如果您是企业的所有者,是否可以获得 Facebook 主页:

To your Question if you can get a Facebook Page if you are the owner of the Business:

是的!前段时间我读过 Facebook 发布的一篇文章,其中描述了这一点.如果您是公司/企业/品牌的所有者,您可以要求 Facebook 将页面转移到您的帐户.为此,您必须是所有者,并且您的业务非常大.当公司名称相同时,您必须选择更受欢迎的名称.

Yes! Some times ago I've read an article posted by Facebook where this is described. If you are the owner of a company/business/brand you can ask facebook for the page transfer to your account. For that you must be the owner and your business is really large. When the names of the companies are the same you must have to one which is more popular.

这篇关于获取特定 URL 和页面的 FB 点赞数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆