I am trying to get the user id of those that 'likes' and 'react' to a posts(post not belonging to me). I notice that from the graph api explorer, likes and reactions are greyed out. Any advise if I can get those details?
Thanks.
Jeff
https://developers.facebook.com/docs/graph-api/changelog/version2.11#gapi-90-pages
/page/* — User information will not be included in GET responses for any objects owned by (on) a Page unless the request is made with a Page access token. This affects all nodes and edges that return data for objects owned by a Page.
In other words: If you don´t own the Page where the Post belongs to, it´s impossible to get user data.
Related
In the Graph API Facebook, for private profile, no more likes, reactions and comments appear. Is there a way to request them again?
For the pages must be administrators, but for private profiles?
Is there a way to request them again?
No, there isn’t. You can only get those made by the current user who’s access token you are using, everything else will be hidden from your app.
https://developers.facebook.com/docs/graph-api/changelog/version3.0#comments-edge:
When read with a User access token, the /comments edge returns empty data for the following nodes: Album, Photo, Post, Video
https://developers.facebook.com/docs/graph-api/changelog/version3.0#reading:
The following edges and fields, when read with a User access token, return only the current user and only if applicable. […]
Regarding the comments, what is says does not seem to be strictly true - I can still see comments made by myself when requesting /me/feed?fields=comments; but everybody else’s don’t show up.
I need to check, using facebook graph api, if a facebook user has liked a certain page (I am the admin and can grant myself any permission). Does anyone know how I can achieve that?
I can't find it in the docs. The closest in the docs is the following:
https://developers.facebook.com/docs/graph-api/reference/v2.10/object/likes/
It says that the request returns: "An array of User or Page objects representing the people or Pages that liked the object" Which is in fact what I am looking for, as I could simply query the user in the list and see if there is a match. BUT , in fact, what the request (mentioned above) actually returns is an array of User or Page objects representing the people or Pages that the object (my page) liked.
The request from the docs might sill be implemented to solve the problem:
facebook graph api if a user has liked a page
BUT it doesn't help me, because I don't want to take the user's permission. I want to implement the solution from the side of the admin of the page- the admin needs to check for multiple users if they liked the page or not.
Can anyone help me sort this out?
I would like to fetch the users list from Facebook Graph API 2.0 who has checked in at particular place or a page. I tried to use this way:
https://developers.facebook.com/docs/graph-api/reference/v2.0/page
But it does not provide that information. Can this be a privacy issue?
Is there a way that if I am a page admin of the place, where people check in, I can fetch the user ids of those users?
Any kind of help or guidance will be very appreciated.
Regards
This is not possible IMHO, because the user's checkins are bound to the OAuth access restrictions, meaning that every user need to give your app the permission to request his data.
As you already refrences, the Page itself has no edge for the checkins: https://developers.facebook.com/docs/graph-api/reference/v2.0/page#edges
I am helping out a friend with a site for a venue that lists all events on FB with a location, ticket URI, time, etc.
I have found lots of info on how to get the data, but what I am unclear on is how to get public events without being logged in to FB.
What type of tokens do I need to have a website simply pull events data and display it to visitors?
Basically, what I am attempting to do is show a set number of upcoming events and assume that the visitors to the site are not logged in to FB.
On this page, https://developers.facebook.com/docs/reference/fql/event, it says this:
Permissions
To read the event table you need:
a generic access_token for public events (those whose privacy is set to OPEN)
a user access_token with user_events permission for a user who can see the event for non-public events
an app access_token with user_events permission (for non-public events, must be the app that created the event)
a page access_token with user_events permission (for non-public events, must be the page that created the event)
I am not looking to get help with the code really, I am just having trouble figuring out how the access/auth process works.
It appears FQL may be the best option so I can do queries based on date ranges, but alas, I am stuck on the access/auth/token part.
What do I need to have in place to be able to list a Page's events on a 3rd party site?
If anyone has any advice there, I would appreciate it. Thanks.
Just to explain to others, you cannot get ALL the events in the city by graph search. You need to refine it either by user details or some other metric.
I figured it out.
This question helped, but was not correct and there is a syntax error in an answer:
Get Facebook events from public fan page
From what I found, you need to become an FB developer, create an app, get an ID and secret.
Use the SDK (PHP in my case), and this question had a good example of returning the list I want:
Link from ticket_uri is opening a blank page
I am having the same issue though of getting blank pages on the ticket link if the user is not logged into FB.
But my original issue is solved.
I am new to Facebook's Graph API and FQL. I want small information about the same.
I want to get List of all pages liked by any particular user.
I have used Graph API just to allow user to get logged in with their Facebook ID and Can access their wall but don't know much about rest of the this.
I searched on Google for same but got information about list of pages that user administrate that I don't want, I want full list which is like by them.
It's a connection property of the User object.
https://developers.facebook.com/docs/reference/api/user/#likes