After a user clicked on a "like" button of a facebook group or facebook page is it possible to get any addional information about the user beside name and uid?
I know with an app I can request access to a lot of data but I don't want to do that. I also know about facebook statistics.
The question targets more at the point if I publish any information about me if I like something.
The user ID isn't included in the callback on the edge.create event when a user clicks like, so the page doesn't get it then.
If you get a user ID via the user authorising your app you can access their public information at https://graph.facebook.com/ but you'll need them to allow additional permissions to see anything which wouldn't be accessible to a logged-out user.
Related
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.
I've created a Facebook page and implemented an application for it too. Now, my aim is that, a user must like and share page with at least one friend to be able to participate/to get access to the app and consequently use it (play the game). Or simply force a user to like and share the page. Can you please tell me if this is even possible and how it can be achieved?
When user visits your Facebook page, you receive signed_request , which contains some information about the user, including whether or not the user liked your page. For share, you will probably need to implement send dialog. In documentation it is said that user takes action (send or cancel) he will be redirected to url you set up, and if the action was "cancel", there will be an error.
So you will probably need to create db where you store user id and whether or not he shared your page before (since you can check if he liked the page at any time).
I have a simple tab page, php sdk working and I know I can get the "like" for this specific page from the user signed_request.
This page is a colaboration with another company who also has an FB page. What i´d like to know is if I can get the like status of their page for the current user so I can authorize an action on this tab that is dependant of the user liking both my page and my partner´s.
Is this possible without using an actual app, an access_token and the appropriate perms requested?
e.g. my page is fb.com/Coke and my partner is fb.com/Target
On this specific tab page I want to enable a button only if me (Coke) is liked (which I can get already) and if my partner (Target) is also liked.
I tried the graphAPI (me/likes) and FQL (using the connection table) and both compalin of an unauthorized request.
Short Answer:
No, this will not be possible in a production setting.
Further explanation:
Some users have their list of likes as public. In that case, it would work.
But in order to get likes from a user that has that setting as anything but public (such as myself, only friends of friends can see it), then it requires an app and an access_token that has a user_likes permission.
From the documentation:
Permissions Required:
user_likes permissions if querying the current user.
I am making a simple contest on Facebook which is a form to fill in.
I would like to add a mechanism with share options.
You will win another chance for each friend who will click on the back link.
Technically i wish to add to the shared url the user id to add 1 chance for him in my database (sharing options will appear after the form)
So i need the user id but i don't want to display the FB popup "accept this application" before launching my app. Is it possible?
If not, do you have an id or online to do it with open graph and all that stuff?
There is no way to get the User-/Facebook-ID of the user without login/authorization. The signed request variable only presents basic infos if the user is not logged in (like status, admin status, locale, ...).
So, in order to get the User ID you have to authorize the user, i recommend the JavaScript SDK for this:
https://developers.facebook.com/docs/howtos/login/getting-started/
This is against the Facebook Page Terms.
You can not have a contest where sharing is considered a entry in a contest.
Follow this link and look at Section III.E.3 for details
https://www.facebook.com/page_guidelines.php
using facebooks api... how do you post to a page a user likes on that users behalf... for example I have a user that likes a certain page. They can log into my app and make a post on that pages wall via my app instead of logging into facebook to do it.
If the user grants your app the publish_stream permission then you can post on his behalf on pages he likes (or pages that don't require to like in order to post).
You can try it yourself with the Graph API Explorer, just go there and click the Get Access Token button, then go to Extended Permissions tab, select "publish_stream" and confirm.
Then in the address field put a page you like, let's say southpark/feed and submit, you should see the feed of that page. Now, change the method to the left of the address field to POST and click the Add Field link and write in the name "message", enter a value and submit, you should get an id of the post as a result.