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

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.

Related

Is there a way to count the number of times each individual Facebook Friend has liked your Facebook posts?

Iam trying get the number of times each individual liked my particular post.
It seems that it is possible to get the overall like count of a page.
But I dont need the overall like count. I want in specific data of a user who liked my posts.
I tried these links
How can I get fan page likes count using graph api?
Getting the Facebook like/share count for a given URL
How to get Facebook likes count for a Facebook page?
I am just writing the answer which is mentioned in the comment. Because that's the answer.
No, that is not really possible. Each of your friends would have to
sign in to your app and grant it permission to read their likes, and
you would need to have valid individual user tokens available for all
of them each time you want to request this data, because “A User or
Page can only query their own likes. Other Users' or Pages' likes are
unavailable due to privacy concerns.”
developers.facebook.com/docs/graph-api/reference/v3.3/object/

How to get number of like, share, comment of post of Facebook, Instagram and Twitter?

I am making ios and android apps and I want to get number of likes, shares, comments of any post that is posted by particular user from his/her Facebook, Instagram and Twitter accounts.
Means how can we get number of like, share, comment of the particular user's post of Facebook, Instagram and Twitter?
Does Facebook, Instagram and Twitter APIs/SDKs support this?
Please provide any reference link to achieve this.
I'm not sure about twitter or instagram API's but facebook graph API allows you to do this, given that you have the necessary permissions.
You can always check the public data, your own posts and such..if you want to have access to the data of a particular users feed/posts they will need to provide you with that permission. (user_posts in this case)
As for the total count you can retrieve it by adding .summary(1) to the end of your query ex. for likes, comments and shares.
me?fields=posts{comments.summary(1),likes.summary(1),shares}
you can also limit the number of comments/likes/shares to zero so that you retrieve only the total count per post. If that is what you want simply ad .limit(0) before the .summary(1) ex. comments.limit(0).summary(1)
Shares however are different from comments/likes/reactions, you can only retrieve the count of shares from graph API therefore you do not need to provide anything other than the "shares" query to the post to recieve that.
Cheers!

Is there a way to check if a user is still fan of my page?

I currently am making a list of my fans who communicated with my page and I store their data in a personal database. But now I was wondering if there is a way to see if a user is still fan of my page.
Example: A user likes my page and posts something on my wall. 2 weeks later, the same user unlikes my page and I update my fan database. I will still get his name in the query because he once posted a message on my wall. Any solutions or ideas?
Note: The user does not need to login to an application or give permissions.
No, there is no way to check if a user is a fan of your Page. The user would have to authorize an App with user_likes, and you would not get that permission approved just for checking the like status.

Get FB likes count for specific URL and page

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.

retrieve the amount of likes in a facebook page status

I would like to enquire whether or not it is possible to retrieves the numbers likes of a facebook fan page status or links or photos to be like?
if there is, must there be an apps for this or a simple social plugins?
the main thing i would to do is that, when USER A likes my website, the amount of likes will increased right? The link that USER A liked, would appear in USER A's wall. What would happen if their friends likes the post where USER A likes my website, can i add up to that likes too?
When you access the Post object in the Graph API it has the count and details for both the comments and the likes - e.g. http://graph.facebook.com/47764841579_10150344908236580