is it possible to read group feed by using facebook group api? (after 4 april chage) - facebook

Is it possible after the changes of 4 April, to use Facebook group API in order to read the feed?
Until 4 April i did it via Graph API EXPLORER by using GET request like:
v2.12/{Group-id}/feed
using user access token.
This is not working for me anymore.
The service is no longer available or I do something wrong?

https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Testing of our more robust process starts today and the new process
should resume in a few weeks, but apps currently accessing Events and
Groups APIs will lose access today.
The feed will just not return some fields anymore, you can read more about it in the changelog: https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#groups-4-4

Related

Autoposting to Facebook groups, error from Graph API

I've faced with problem a week ago
Details:
Have already created a many years ago Application (just for posting)
Through this app I've send request to Graph Api, POST /GroupID/feed
Problem appeared on 11th of April, but this affected only groups, for example the same app using for posting to another open pages and my profile - without any problem
Application have enough rights - manage_pages and etc, i've tested many many time with Graph API Explorer and every time the same error for my groups, but for pages - no problem
Response from GraphAPI
Unsupported get request. Object with ID 'GroupID' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
I am the owner of all groups and pages and account with admin rights
Is any restriction from Facebook? I could not find any information about it
Facebook has temporarily suspended all parts of the Graph API that deal with groups. It's supposed to return in coming weeks, but all apps using it will be required to re-apply for the user_groups permission.
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes/
As we begin enhancing our new app review process and make changes to our platform, the Events, Groups, Pages and Instagram APIs will no longer be available to new developers. Testing of our more robust process starts today and the new process should resume in a few weeks, but apps currently accessing Events and Groups APIs will lose access today. Going forward, access to these APIs will require a formal app review and for apps using the Pages API, submission is required within 90 days once app review resumes or access will be removed.

Graph API empty events list of page [duplicate]

Using the latest version (2.12) of the Facebook API I'm trying to get (public) events for a page, using the Graph API Explorer.
However, I can't seem to get it working:
When I hover over the greyed out "id" or "name" on the left, it says "Field is empty or disallowed by the access token".
Now the page I'm using as an exmple here is Techcrunch, and they have plenty of events coming up. So "empty" doesn't seem to be the issue.
On the "disallowed" side I've checked the API reference on https://developers.facebook.com/docs/graph-api/reference/page/events/.
However, I can't seem to find any issue here either. It says "Reading Page events requires a valid Page access token or User access token with basic permissions.".
What am I missing here? Any hints are greatly appreciated!
Visit https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#pages-4-4
Currently Facebook is not returning events for pages using Pages API unless you use an user accesss token and that user has been invited to any of the events of the page or is attending/interested in any of the events of the page.
As unknow_b said :
currently to access events you can also use a user endpoint such as ‘/me/events’ or ‘/me/events/not-replied’ using an access token valid for that user. you can get the events that the user was invited to or is going/interested
But the access token user, is only working for 1 hour !
Does someone have another better idea?
I'm trying to do the same thing: getting public events from a page. Related to the above suggestions:
I tried the short-lived user access token two weeks ago, which worked for a short time. Now it does not anymore. Does it for any of you?
Both the long-lived user token, a page token generated with either a short- or long-lived user token do also not return any events.
At https://developers.facebook.com/docs/apps/review/#platforms, Facebook states:
Beginning April 4, 2018, all apps, including those formerly approved, must undergo App Review in order to gain access to the Events API, Groups API, and Pages API. Apps accessing the Events API and Groups API will lose access and require review once App Review resumes.
So being reviewed might help. I will report further.
Update 1: an answer on this related bug reports states it more clearly:
App review required to use the following edges: GET /page/events and GET /me/events
Meanwhile they cancelled all pending review requests for the Graph API 3.0 changes, so I have to resubmit.
Update 2: My project got rejected & I'm not bothering to continue it now.
Yep. Facebook has taken down the Graph API for page access tokens. I had this code in production for 2 years and it worked great. The only way to retrieve data (or was a week or so ago), was a temporary user token that lasts about 2 hours. It's totally broken my band's schedule page. I've been through every avenue and even spoke with a facebook ad team employee on the phone that was aware of it. She seemed to empathize but had no solution for me. I would count on it being down for a while.
I just created a python script, you can see here. It queries the given facebook page and it's events, and puts the data into a mysql table.
It looks like it won't be working anymore due to the scandal with Facebook Analytics (see Why does Facebook Graph API say my account is non-active?).
In the popular plugin facebook-events-by-location-core, you can take a look into the issue#29 discussion. It's well explained there, and I don't think so there's a way we'll get the data in a public API available anymore.
There were also some rumours it was a competition for their (dead?) Facebook Local app, but not sure about this.
I have finally figured out a work around for this. On your fb application, you have to disable the secret key requirement. This can be found under the advance settings of your fb application console. It's called " Require App Secret".
Once you generate a fb PAGE access token, you get a fb page token, and then extend it. here is the token debugger: https://developers.facebook.com/tools/explorer/
You can extend the access token programmatically as explained here: https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension
AND
https://developers.facebook.com/docs/facebook-login/access-tokens/#pagetokens
OR
There is also an extend tool in the access token debugger (just click on the debug and the extend button is bottom left): https://developers.facebook.com/tools/accesstoken/
Yes , we had a working product back in 2016 ( almost like it's successor Fb Local ) . We were monetised and ready and selling events tickets on the messenger chatbot.
Idea was to solve discovery + booking for hyperlocal events. We went out of business and now its a heart ache to see Fb local.
enter image description here

How to get user data now with restrictions on instagram platform api?

There have been lots of changes to the facebook api recently, which now includes the instagram api as well. https://www.instagram.com/developer/changelog/
They have shutdown a lot of endpoints way ahead of schedule and has created a huge problem for my application which integrates instagram user data. They have the instagram graph api now, but looks like it can be used only for business accounts (looked like that prima facie). Reading through the news past couple of days, I am really confused about what is available and what is not. My application used to get user data (number of followers, recent posts, reach, likes, etc) using the instagram handle provided by users. Since this is totally restricted on the platform api now, is there a way I can have the same functionality using the new graph api? Or should I look into 3rd party APIs? I am open to asking users for authentication (I already have the facility). Can the user information be fetched after they authenticate my app to do so?
You can use the following Graph API to get all the details for any IG business account.
https://developers.facebook.com/docs/instagram-api/business-discovery

Getting public feed from multiple Facebook Groups via Graph API 2.3

We're building an app where the user will login and allow us to read their public posts that they share in a set of groups that we administer. With API 2.3 I can see that facebook lets us read the public feed of a group but from 2.4 on wards, only Admin posts are readable. From what I have gathered, Facebook is going to let us use the 2.3 API until June 2017, which is perfect. But they're not allowing a new account or an existing one to create a new app in 2.3, they're imposing 2.5 on everyone.
Will we be able to read all public feed (user will allow) from a set of groups that we administer?
Can a new account create an app under API 2.3?
How long will it work until 2.3 is completely phased out?
If not a set a groups, can we read public feed from a single group that we administer?
I know that we have to submit the app for review but we need to confirm this before we start building.
Try with a User Token of a group admin. In general, you are not supposed to read the feed of a group you don´t manage.
No, new Apps will only be able to use the latest API version as minimum.
Check out the changelog to find out how long 2.3 will work (July 8, 2017): https://developers.facebook.com/docs/apps/changelog
See 1
You do not have to submit your App if you only use the User Token of a group admin. The admin just needs to have a role in the App.

Is it possible to publish Events to Facebook via the SDKs or API still? [duplicate]

I have gotten the access token with the correct permissions to manage events etc. However, the following:
https://graph.facebook.com/{pageID}/events?access_token=xxxx&name%3Dtest%26description%3Dtest%2520description
(I have not included the credentials here)
Upon testing the above does not create a name value or description for the event - the page just returns a blank data object.
Is it possible to create some test data for an event through the browser address bar and if so what is the correct syntax?
As per Facebook's documentation in: https://developers.facebook.com/docs/graph-api/reference/v2.0/event#publish
Publishing
You cannot create events via the Graph API.
Use Facebook SDK instead: https://developers.facebook.com/docs/javascript/reference/FB.api
I spent a long time battling this too.
TL;DR - graph v1.0 allows event creation, graph v2.0 does not.
Facebook Graph API 1.0 "events" allows you to create events (all CRUD actions) and is fully described in the docs. Graph version 2.0 does not allow you to CRUD event data. This is where the other answer came from.
Graph version 1.0 will be depricated April 30, 2015 (official changelog).