Is there a way I can see the order in which people like my facebook page? I would like to identify the 5000th like to give them a prize.
Is this possible?
Stuart
No, this is not possible, because you can't access the list of ALL users which liked you page.
You can only access the likes of ONE user once he gave his user_likes permission to your app (if you have one).
Related
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.
I know there is a Facebook tool named insights, but, at the moment it does not give me the information I need.
I would like to create custom invitation code to track how many friend of a specific user have became the fans of my page.
Small example...
John becames fan of my page, I would like to undersand how many friends of John became fans of my page.
I do not know how to do that, but I must need to know how many users have become fans and by whom.
Is this possible with a Facebook page, or do I need to create an application?
Thank you!
This can be done with FQL (Facebook Query Language) using the Facebook Graph API. What you're looking for is the likes attribute which can be obtained from the JSON returned by http://graph.facebook.com/yourusername.
Ofcourse you will need to do further queries to obtain things like how many friends of a specific user liked your page. Probably something along the lines of SELECT ... FROM like WHERE object_id = yourpage and I would imagine you'd need to link that to the friend table with something like WHERE uid1 = friendid to get their friends.
Is it possible for canvas to check if user has liked a certain page without requesting user_likes extended permission? I have the page_id I need to check against.
I know it's entirely possible in a page tab as the check is made against the page user is currently browsing, but what about canvas? I'd really hate to ask for extended permissions just for this check.
The answer is: no, there is no way for canvas to check if user has liked a certain page without requesting permissions.
You can read the page_fan table, using fql. But you do need permission.
A Facebook user who likes a Page as represented in FQL.
The User object has an equivalent likes connection.
To read the page_fan table you need
any valid access_token if it is public (visible to anyone on Facebook).
user_likes permissions if querying the current user.
friends_likes permissions if querying a user's friend.
The above paragraph from this Facebook doc page clearly states that you need the user_likes permission. Check out the link to see what info the tables contain.
If you have the user_likes permission (or if the user has public likes) the quickest way to check if a user likes a particular page is a call to /USER_ID/likes/PAGE_ID with that user's access token
I imagine most users' privacy will be set such that you need the user_likes permission though
Here is a little trick, how you could solve this and we used it before. I know this is not a really clean and nice solution, but it works.
You need to create a session to save a boolean variable called $is_fan in it. On your canvas page you check if this param is available. On init it is not available so you redirect to your fanpage using the app_data param to pass, that the $is_fan has to be checked. On your fanpage you can check then if the user is fan and save it to the session. Then redirect to the canvas page.
in my browser the two redirects take about 1-2 seconds, which was ok for me...
Not an nice solution, but it works....
I would like to see of visitor of my website is already fan of my fanpage.
So if somebody visits my website,i would like to ask him to visit my fanpage only, if he is not fan already.I dont want to ask for permission. Just check, if he likes the fanpage or not.
Is there possibility to do this? I am not experienced in this Facebook API, this is why i ask for an idea for doing this
It can be done using FQL by querying page_fan table, you have to get user_likes permission before doing this...
It is now against Facebook's policies to gate an app or content within an app based on if someone has liked your page.
Use of the user_likes permission will not be approved for use by Facebook via Login Review if you're using it for the purpose of like gating.
In addition, FQL is now deprecated and should no longer be used for new apps.
See the announcement here: https://developers.facebook.com/blog/post/2014/08/07/Graph-API-v2.1/
I'm trying to get a list of all my Facebook Page Fans.
All I can get from FQL is the total amount of fans for my facebook page. I can't know WHO my fans are?
I have tried this:
https://graph.facebook.com/somepage
Anyone with an idea of how to know WHO my fans are? I.e. list the User IDs of all my fans for a specific page?
I also know that I can get more information about my fanpage using FQL and "insights", from there I can get "page_active_users" and so forth, but not a list of all my fans?
I know that Facebook doesn't support this (in public), but any ideas on how to get around it?
https://graph.facebook.com/[PAGEID]/members?limit=500&access_token=[oauthtoken]
Its not possible to get the UIDs of the users who have liked your page.
The UIDs of users are only available to third parties if the user performs a public action (post, comment or like on your page's feed), or if they auth an application.
This is why you can't query FQL with a page ID and get UIDs.
Its no more possible, thats why FB makes money ;-)
You can try to parse the AJAX call...