Get FB likes count for specific URL and page - facebook

This is a two questions in one.
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?
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?

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.

Is it possible to get the likes count to a specific page inside a website?
If that page is in the Open Graph, yes.
Is it possible to get the official Facebook page/page id if I only have the URL of the website?
No, because there is no such thing. No one is obligated to have a FB fan page for their business, organization or whatever.

Related

Facebook share through my website and get likes and shares count only?

I want to create a website where it would be crucial to be able to view the likes and shares of a specific post a user shares from the website.. Is this possible anymore? The flow would be similar to this:
User logs in through Facebook and grants user_posts permission
User then clicks a share button for a specific url with quote content and a hashtag
What I need after those steps are:
ID of the post from sharing
Count of likes, reactions and shares on that post
even better would be a webhook notice of likes/reactions/shares count.
Any ideas? I don't need any private data... just counts of likes/reactions/shares but it's not looking possible anymore.
https://developers.facebook.com/docs/apps/examples-platform-policy-4.4
Don't incentivize people to post content on Facebook, or give the
impression that posting to Facebook will be rewarded
Incentivizing users for posting/sharing something on their personal wall is not allowed, you would not get the user_posts permission approved for that, and that makes it impossible.

Collect data from facebook pages

I want to write a program(no restriction on language) to extract data from facebook pages( name, website URL associated with facebook page, category that facebook page is listed in, Location of facebook page).
I want to know that is it possible to access data of all facebook pages in a particular area. Basically I know that we need ID of a facebook page to access data of that page. My question is how do I get a list of IDs of all facebook pages ?
My question is how do I get a list of IDs of all facebook pages ?
Not possible.
I want to know that is it possible to access data of all facebook pages in a particular area.
Again, not possible

Facebook FQL/Graph API - How to get the real likes and shares for a URl?

I have been searching via Google and found so many articles about this but now I need to ask some general questions.
I'm trying to get the likes and shares for a URl in Facebook. Please correct if I have misunderstood what a URl is in this context.
I have a URl with special content I want to promote via Facebook. I share it via a special Facebook page I built up for this articles.
Then I share this content of this page with my personal account in different groups. In every article I distribute in different groups the original URl with all its opengraph data is inside. This content is distributed by Facebook with a marker, that I (my name) shared content of a page (page name).
I have tried so many ways to get the shares and likes for this URl I posted via facebokk, but never got the correct values.
When I for example aks the "link_stat" table I get a number like 29 for likes. If I take a look a the content/URl I posted at the page 34 users liked it und the published URl in a group is liked by 59 users. Can you help me what this like from "link_stat" means?
I thought, if facebook users like and share the URl distributed via this way in one or more groups I get all likes and shares for this URl all over Facebook?
Am I wrong?
Thanks für your help!
Regards,
Jens

Is liking an activity is the same thing as liking a business on facebook?

2 Part question
1) So I am trying to figure out the difference between "liking" something on pinterest vs "liking" a business. Is it the same thing?
2) I want to implement people "liking" different pages on my website (such as pinterest) and track which page has the most likes. Do I have to save and track that in my database or facebook API will let me see which pages has most likes based on some criteria?
TLDR: Yes, they are the same thing.
A Facebook "Like" is what is an Open Graph Action. Liking something from within the Facebook web interface or via one of the Facebook plugins allows an easy implementation path. Pinterest uses a custom script that initiates a built-in like action.
Both types of like require there to be an object with open graph metadata that Facebook can scrape to get the information that will be shared on a timeline. That metadata could be served by Facebook on an internal page, or by an external page.
As for getting the number of likes, yes you can. Each canonical open graph URL gets an id within the Facebook system. This includes objects within the Facebook system.
So, the Pinterest Facebook page has an id of 253591661347566. You can find this by querying https://graph.facebook.com/pinterest?fields=id
The Pinterest home page has an id of 185629821512802 according to https://graph.facebook.com/http://pinterest.com?fields=id. (Not urlencoded for clarity). You could replace http://pinterest.com with any other url, and get that pages id.
For any object that you know the id, you can get information on the number of likes it has by adding likes to the fields querystring.
If you've marked up your pages with an app id and admin information, you can see all of this and more through Facebook's Insights.

Facebook API: How to tag all the people who liked your page?

Say I have a Facebook page and there are n number of people who liked that page. Now I want to upload a photo on this page and tag all the people who liked that page. Is this possible? If so how?
No, for several reasons:
You can't retrieve a list of all fans of a page via the API
You can only tag friends of the current user whose access token you're using in photos
It's against policy to tag people in photos in which they don't actually appear