Unable to get public events using Facebook Graph API for iOS - iphone

I am able to login, get the user profile data, and even pull photos from a public page's photo library. The issue is when I try to access the page's events list using:
graph.facebook.com/PAGE_ID/events
all that is returned is a blank array.
On http://www.facebook.com/BeerLovesSouthside/events you can see a full list of events. Even using the graph explorer tool I am not getting any errors about access tokens or anything.

On http://www.facebook.com/BeerLovesSouthside/events you can see a full list of events.
That’s events created by that page.
https://developers.facebook.com/docs/reference/api/page/#connections says,
events: The events the Page is attending.
So I guess if you want the events created by the page, you have to read the corresponding posts from their feed by type.

Related

Need to create Facebook events feed from public page

I'm trying to get an events feed from a Public Facebook page, but can't get it working.
I've an app with "Page Public Content Access" permission.
I try {page-id}/events and {page-id}/feed without luck. In the first case I get an empty data array, in the second one I get all posts but no events.
You simply cannot get events from public pages anymore (this had been changed after Cambridge Analytica).

Facebook Watch Episodes API

Are there any Facebook APIs to retrieve the episodes of a show from Facebook Watch?
E.G. Get all the series and episodes in those series of https://www.facebook.com/sacredliesshow/
The closest I can find is https://developers.facebook.com/docs/graph-api/reference/video-list/#Reading but it's not clear how I should deduce the {video-list-id} from the page https://www.facebook.com/sacredliesshow/
Thanks
You should be able to get all video lists (including their IDs and names) for a page (based on ID) from here: https://developers.facebook.com/docs/graph-api/reference/page/video_lists/
That specific page's ID seems to be "454309158359123" (Extracted from the page's header section). However, given that the endpoint mentioned above is private I don't think you'll be able to use this if you don't actually own the page or have login access to it. Probably also why you can't just get the ID of video lists from their website by inspecting the source.

How to get custom label in page conversation via facebook graph api?

I want to get custom labels in page conversation via facebook graph api.
I found out from here.
https://developers.facebook.com/docs/graph-api/reference/v2.11/conversation
But I can not find.
I want to know, Can facebook graph api get custom label in page conversation?
Unfortunately Facebook only gives you labels applied to a user. So first you need the conversation participants and their user-ids, then you can get the labels associated with that user.
To get all the custom labels on a page
GET /v2.12/{page-id}/custom_labels (source)
Get the paticipants
GET /v2.12/{page-id}/conversations?fields=participants
(source)
You'll have to find which conversation you are looking for
or if you have the conversation id: GET /v2.12/{thread-id}?fields=participants
Get the labels
The participant id is the user-id. You can use the user-id to get the labels here:
GET /v2.12/{user-id}/custom_labels
(source)

How to get all events from a facebook page using the opengraph api

I am trying to get all events from a Facebook page, so no posts, just the events. How can I achieve that with the opengraph api?
I tried the paramenters event and user_events but this returns nothing.
How can I get a json object containing all events and their data from a facebook page?
The endpoint for events:
/page-id/events
The endpoint to get events and the feed in one call:
/page-id?fields=events,feed
...or with specific sub-fields:
/page-id?fields=events{name,description},feed

Getting Open Graph og:image for page without being a page administrator

I want to use open graph to query the og:image and og:description value for a web page for which I am not an administrator.
I've tried using open graph and fql with both the id of the page and the url, but neither return that information.
I figured that since both values were "public" (they can be viewed in the source of the page) that they would also be public in OpenGraph.
Short of parsing the page myself, is this possible?
I took http://www.southparkstudios.com/ and checked the data returned by the Facebook Object Debugger and varified it had the description and image properties, then I simply clicked the Graph API url of the object (at the bottom of the page, Urls section) and received the site data, and it contained the image and description properties.
Based on that check, if you have the id of the web page then it should give you that info using the graph api, all you need is an active access token, even an application token will probably do the trick.
What did you get when you queried for that data? Did you get an error? just a smaller subset of the data?
Also, can you show the code of how you tried to get that data, both graph api and fql.