I am trying to get user posts from buy and sell groups that are open (viewable) for a school project. I just need read access to the data. I am trying to use the search aspect of the graph API but it is redirecting me to making a request as it is not allowing me to view any public data.
**Tried the following: **
I have tried submitting a request; It asked for tons of information, including my passport, driver's licence and other images. It said that it will take 2-3 business days but I am still not approved on day 7
I have tried contacting facebook on their toll free number but it did not work out since they have no one monitoring the calls and they just redirect you a link
I have tried submitting a request; Verification of my request also seem to be not working since I am stuck on stage of uploading my app-icon. Even though I keep on uploading the image that fits into the description, it is not letting me update the picture of the app-icon.
Screenshots:
https://drive.google.com/open?id=1hV28imkpyZLztHxYZNzIBa8t97Y3t3M8
https://drive.google.com/open?id=1TnvUegreUuYv7OmzWzbcJsYOffzzqDmI
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
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
I have a travel app that, used to, pull events from Facebook using the GET /search?q=tokyo&type=event enpoint. I understand this endpoint is now deprecated per this.
So I started to use this endpoint from my Facebook PHP SDK: GET /me/events where in order to pull an event from the API, I'd have to manually set my self as going on my personal Facebook account. Just yesterday I noticed that it now returns 200 response with an empty JSON.
I also saw this post that suggested that access to user_events will face more scrutiny in the App Review process. However, I already went through an app review last year and I can see this in my dashboard:
Hovering over the green circle says: Live and Available to all Users.
So what's wrong?
Also, I can see this note in the App Review process docs:
You do not need to submit your app if it will only be used by you or
by a reduced number of people. Any account listed in the Roles tab in
your App Dashboard, such as admins, developers and testers, can access
all permissions and generate a user or page access token.
You can use any of these accounts to test your app and create a
screencast.
And that's exactly what I do, I pull the events that belong to my account, that is registered as a Developer on the app's dashboard. However, trying to pull my own events even from the Graph Explorer returns empty JSON.
My last resort seems to be to resubmit an App Review. However, given that I already went through late last year, I receive this warning when clicking Start Over:
Is it safe to do or will current permissions be revoked in any way? If so how long will this process take?
AND MOST IMPORTANTLY
How do I pull events right now in the wake of these updates, and is my issue really related to Cambridge Analytica incident or am I missing something? And do I really have to resubmit for an app review?
I wish to create an application which me and my friends would subscribe to and which in turn can monitor a count of items in the news feed using the required permissions (kind of a social network statistics).
I read the developer documentation, but I couldn't find out if it's possible. Subscribing to my application (and allowing the permissions) is a one-time process for my friends. From then on, can my application read the fields mentioned in Graph API for the subscribed users at any time (without the user's involvement)?
You might be interested in using the Real-Time Updates API from Facebook. Using this, you will no longer have to continuously "poll" the Graph API. Rather, Facebook will send the updates to your server.
Here are some sample implementations of the API, https://github.com/facebook/real-time/tree/master/samples.
No.
Facebook used to have the "offline_access" permission which would let applications have an access token that does not expire.
Not a while ago though Facebook deprecated this permission as stated in Removal of offline_access permission.
The longest (that I'm aware of) that a token is valid for is 60 days. If you want to extend that time frame you'll have to get the user to interact with your application.