Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get FB likes count for specific URL and page

This is a two questions in one.

  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?

  2. 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?

like image 453
Silviu-Marian Avatar asked Jun 06 '12 17:06

Silviu-Marian


Video Answer


1 Answers

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

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

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.

like image 162
dk1 Avatar answered Oct 12 '22 03:10

dk1