Need to create Facebook events feed from public page - facebook

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).

Related

Extracting public data from Facebook in a legal way

I want to make an application that needs to collect some public data from facebook.
Specifically I need to check reactions and comments made on public posts.
I've noticed two things:
First, According to https://www.facebook.com/apps/site_scraping_tos_terms.php,
scraping is not allowed unless facebook gives you a written permission. (of which how do I ask for permission anyway?)
Second, as far as I see the graph api doesn't allow to get information regarding posts made by another user/page. Am I wrong?
How do I get the information I need in a legal way and is it even possible?
To get public posts in a page and reactions and comments on these posts your app will need will need Page Public Content Access permission. If you have not already created the app, you can find how to do this in this link and how to review your app for permissions in this link.
Once you have the permission you can get public posts from a page using below API request:
https://graph.facebook.com/<PAGE_ID>/posts?access_token=<ACCESS_TOKEN>&fields=name
Get the id of posts you need details for from the response of the above request
Then you can use the below request's to get reactions and comments of the post based on the post id
Get total reactions:
https://graph.facebook.com/<POST_ID>?fields=reactions.summary(true)&access_token=<ACCESS_TOKEN>
Get total reactions of a specific type (NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL, PRIDE):
https://graph.facebook.com/<POST_ID>?fields=reactions.summary(true).type(<REACTION_TYPE>)&access_token=<ACCESS_TOKEN>
Get comments:
https://graph.facebook.com/<POST_ID>?access_token=<ACCESS_TOKEN>&fields=comments.summary(true).limit(999).filter(stream).fields(id,message,created_time,parent)
And as for public posts by a user you will be able to get the total reactions with the same request by providing the post id if the post is public, but you cannot get the comments, however you will get the comments count

Query public posts / feeds from facebook

I am building an app in which user will enter some words.
I need to get data about these words from facebook public feeds / public posts .
After getting data, i will display post / feed permanent_uri in my app.
i have read out following link but i do not know where to start. From whom i need to contact and on which platform.
https://developers.facebook.com/docs/public_feed/
i also read out link Facebook public feed API
In which one person answers that fb restricts this now.
Can i get public posts / feeds from facebook ?

Graph API SEARCH not returning public posts done on a page

I'm trying to get posts with a certain keyword (in fact, a hashtag), but I'm not receiving all posts. For example, there are a lot of posts done by users on a certain page that are not being pulled although they're public. The call I do is similar to this one:
https://graph.facebook.com/search?type=post&q=keyword&access_token=XXXXX
Not sure if this type of posts are considered public but only retrievable by specifying the page:
https://graph.facebook.com/PAGE_ID/feed?access_token=XXXXX
But I need to retrieve all public posts containing a certain keyword and I don't know exactly which pages could users post to with this hashtag...
Be aware that Facebook has just taken down public post search in Graph API v2.0 so you won't be available to do that anymore.
Check https://developers.facebook.com/docs/apps/upgrading under section Graph API "Public post search is no longer available. (/search?type=post&q=foobar)"

Unable to get public events using Facebook Graph API for iOS

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.

Facebook creates a Business Page for each page on my site

I'm experiencing some issues with my website, regarding to Facebook page's behaviour. I added the opengraphs tags (including an "fb:admins" with my own ID) and now, everytime I click on a Like button on my domain, a new Page is created inside Facebook (i.e. on the http://facebook.com/pages/manage).
Why is this happening? And even more important: how can I make it stop?! I manually created the Page on Facebook for my business, and I don't want any other Page on FB to be created!
Thanks in advance!
That's how the Like button works ; it creates a virtual 'admin' page for each liked URL which is of the appropriate type which allows you to post updates into the news feed of the users who have liked that URL - it also enables access to the insights for the Like button
If you don't want them appearing in the list of adminned pages on your account for some reason, the easiest thing to do is to create an App, and use the App ID as the admin of the pages instead of using your user ID.