Public Page Events - facebook

I'm trying to get the list of public events for a public page.
I've found /v3.0/{page-id}/events, but "Only Events for which the requesting User is listed as a Host or Guest will be returned." I am neither, and it's also saying "This is a restricted edge. You cannot request access at this time."
How do I get publicly available information? Would it be easier to just parse the Facebook page website itself?

Facebook has disabled this API due to "privacy concerns". It's not just you, they broke it for everyone.
Read more here: https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes/

Related

Not able to get permission for Facebook API call

Our client wants to show the three latests posts from their Facebook wall on their website. Therefore we follow the procedure described here (the second answer) which seems pretty straight forward: How to embed a Facebook page's feed into my website
I can generate an access token easily but the call to the following URL fails and gives me the following error message:
https://graph.facebook.com/juwelierwagnervienna/posts?fields=full_picture,picture,link,message,created_time&limit=5&access_token=MY_ACCESS_TOKEN
This endpoint requires the 'manage_pages' or 'pages_read_engagement' permission or the 'Page Public Content Access' feature.
Therefore I requested manage_pages and in a separate request Page Public Content Access via the App interface. They declined both for the same reason over and over again although I made a pretty detailed description and a video to document my approach including code samples.
We determined that your app's use case for this permission is invalid, or it's not needed to support its core functionality. You can learn more about the allowed use cases by visiting our Permissions Reference or Features pages. Please resubmit your request, and ensure that you provide a valid use case with notes and screencast clearly explaining: [...]
I followed all of the instructions and resubmitted the request for approval several times already.
Would love to hear some feedback and recommendations on this one since I'm at a dead end here and the Facebook Support Chat can not help me either.

How can I access Public Page posts without a business verification?

for years I was using Facebook API to fetch public Page post data using Page Public Content Access for my scientific school project, but because of new regulations, now it requires Business verification.
This confuses me, because the data is not used for any business purposes, this data is not sensitive(since it's available for general public) and yet I need to verify it for business use?
Maybe I am missing something and I don't need the permission for PPCA and should use something else?
The project used to visit a public public FB page and save some of the data from posts to my database.That's it.
Yes, Facebook has closed the "free-content-flow". You must keep in mind that even though the content that you are requesting from the GRAPH API is publicly available to anyone on the internet, BUT that does not mean that Facebook has to "open" their API for anyone to collect data from them so easily.
After I submitted my app for review (my review was fully loaded with a screencast and had all the criteria as required by Facebook) - this is what I got back from them. (See attachment)
FACEBOOK'S RESPONSE:
Not Approved: Page Public Content Access
App Verification feedback
We were unable to verify a valid use case for the requested permission(s) from the information you provided. Please ensure your use case is valid and that you are correctly utilizing the permission(s) in the app.
After review, your app does not require Page Public Content Access for its intended function demonstrated in the screencast. (But it does)
The only valid use case for Page Public Content Access is to read and analyze insights from other pages where you are not the admin.
Your app's intended functionality can be supported by the Manage_Pages or Read_Insights permissions. For more details on how best to incorporate these permissions, please visit our Permissions Reference.
Thank you.

How do I get page likes on Facebook? (Since May 1st's update)

Since May 1st (2018), Facebook seems to have changed its developers tools and now requires a "verified" business account to be able to use many of their APIs calls. I am wondering if it's possible to use a normal "unverified" Facebook App's app_id and app_secret to get public information such as a page's fan_count. I used to be able to do this, but since May 1st I get this message:
To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.
Is there any way of getting the information I want without going through the (now) very long process of verifying an App?
I am particularly interested in doing this with PHP's SDK or pure HTTP call.
Thanks a lot!

Facebook API: find out whether private message links into business manager or not

When fetching page conversations, I receive a link field. This link field is an absolute path, without the server, e.g. /PAGE-12312/manager/messages/?mercurythreadid=....
Depending on whether a page is managed via the "Facebook Business Manager" or not, that link should be either opened via facebook.com or business.facebook.com.
How can I find out whether the FB page is managed via the business manager, i.e. how can I know how to properly construct the link back to facebook?
Linking to a private messages on a page managed via the business manager does not word, i.e. opening facebook.com/PAGE-12312/manager/messages/?mercurythreadid=.... leads to an error.
The business field on the /{page-id} node in graph api is the ID of the business that owns the page in Business Manager, if any. It's only available with a page admin token.
You have to ask explicitly for the field in the api-request:
/{page-id}/?fields=business
The way we solved worked this around is by realizing that you can always link into the Business Manager, even when the page doesn't have it activated.

How to send private feeds from company's name through facebook API?

I want to send something like feed seen to direct user only (I know the mechanism how to do it), but from something like page. As I've understood only public feeds are accepted for pages. Is there any analog object, that could be associated with my company and that could be an author for private feeds, seen only for direct users?
No, as indicated at https://www.facebook.com/help/352402648173466?in_context, even if you enable settings:
What you can do is narrow the audience by conditions(age, demographic...etc), post feed specify audience by user id is impossible:
My first thougth was send private message as the solution, unfortunately, as indicated at https://www.facebook.com/help/273376269375028/, what you can do is only
send messages to people who've contacted you on your Page
You are able to retrieve a page's feed by querying the following graph endpoint:
https://graph.facebook.com/{group_id}/feed
Please see the following reference: https://developers.facebook.com/docs/reference/api/page/#feed
Posting to a feed requires you to have the access_token for that page, which can be retrieved by calling /me/accounts using the access_token of a user with admin privileges to that page.