-
Notifications
You must be signed in to change notification settings - Fork 56
Request failed with status code 400 #29
Comments
How are you using it, and are you sure you’re using an app access token? |
Yes i'm using an app access token, as i said, everything is fine. After some tests, i find this error when the api try to get events information.
Looks the Facebook restricted some information from events, but i could not find which in specific. ps: I have all the necessary permissions edit ----- |
The error message is a bit strange, because when using an app access token, no user account is involved. Removing the events.fields basically renders the tool as meaningless |
Facebook has shut down access to some data using the Graph API. This is in response to the Analytica scandal. We can only wait for more information. https://newsroom.fb.com/news/2018/03/hard-questions-cambridge-analytica/ https://developers.facebook.com/status/issues/205942813488872/ /Big |
Thanks @BigFoppa! The error message couldn’t suck much more tbh, and FB is making strange moves. I can only imagine that the problem lies in the attendance/rsvp counts, because IMO these are the only things related to users. I’ll try to very that over the weekend. |
All data from Events is blocked for the moment. You can using the Graph Explorer see that events-data is blocked to apps. Suck, is an understatement. The error you get is: { The "non-active accounts" meaning is a bit cryptic. But all apps are blocked for Events-data. A call like this gives the error above for an app (not for Graph Explorer): ?ids=179082445563485&fields=id,name,events.fields(id) /Big |
If this is correct, then it’s one of the most stupid things ever. Event Data would have nothing to do with user data if they’d just remove the attending/maybe/declined counts. Not very well thought out apparently. Not that this surprises me. |
I tested this today, and unfortunately there doesn't seem to be a way to access events data with an app access token. I used the User Access Token from the Graph API Explorer to run the tests of this project, and it was successful. Maybe this could be an intermediate workaround? |
Hi tobilg what steps did you take to make it work through User Access Token? |
@vrgomes You can go to https://developers.facebook.com/tools/explorer/145634995501895/ and just copy the access token from there. Make sure that the original Graph Explorer is selected in the application pulldown on the right side. |
Hmm, I always use a user-token in my app, Eventmap4u, and it doesn't work now. I can only get it to work within Graph Explorer (or if token is copied from GE) . I hope you can prove me wrong. /Big |
@BigFoppa that's not what I was trying to say. If you're using the (User) access token copied from the Graph Explorer, it seems to work when passing it as |
@tobilg we were writing at the same time, read your latest post after mine. We have the same understanding. The token from GE can be used for testing, but it is short-lived and expires too soon to be used in production. /Big |
Try to use an access token from an app that point to a real site online and not to localhost. |
@znortr can you explain how to configure that? Greetings. |
@vrgomes If you Look in your Facebook app dashboard you can see the domain app and the site url fields. |
@znortr Thanks for the hint! I just tried to verify this behavior... Unfortunately I couldn't reproduce. I also tried to create a new app with the procedure you described, but not success either. Are you using an app access token, or a user access token? |
@tobilg I'm usig an app access token........ |
Well, you're in the wrong project then, but |
I'm not a developer so I do not know what to say, but I can say that, in my case, it work, I just checked, and today, after switching the access token, I downloaded about 15,000 events. Here my app config: access token: app_id|secret_key Let me know if you need some more info on this. (My guessing) |
Has anyone managed to make it work? I set it up as the @znortr said, but doesnt work, maybe i have placed the app domain and site url in wrong place It makes me crazy because I see others apps using events information and can't understand what a hell is going on in Facebook |
I just was able to make a (very fragile) WA. |
Thanks @xtebs. I'm quite sure that you only got a short-lived page access token, which you can check at https://developers.facebook.com/tools/debug/accesstoken As it was generated by the Graph API Explorer app, you can't exchange it for a long-lived token, because you don't know the client secret (see https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension). |
Thanks for the heads-up @tobilg .I totally agree with you (unfortunately) . In my use-case I will need a lot of manual work until something better comes up. |
Looks like everything working as well now |
@jonathanmauer Did you do anything special to make it work? I've tried using both app access token and user access token, but the closes I have gotten was getting an empty response when using user access token from graph explorer.. EDIT: |
its working with both app and user access tokens. I think facebook is analising all the apps before granting permissions. ps: Before i added domain and url from my api and it did not work, but... it may this have influenced |
@jonathanmauer @JosteinKringlen I am still not able to access the api's. I am using user access token. Any suggestions? |
@adf47 You could properly scrape Facebook using a HTML-crawler. Needless to say, a hassle. There are also some services that offer that as well, but haven't tried any of them. |
After more than 3 months, I get my app approved, to access the public page contents, but FOR NOTHING !!! There is no way to get the page events ........ It is obvious, at this point, that since they had launched their own app, public events are public information just for them ......!?! :( |
They removed the events from the Public Page API? |
@vrgomes The endpoint still exist but the response is empty.......... |
@znortr can you provide a code snippet of the curl command that returns an empty list? Perhaps your request is malformed or there are no events in that area. |
What about read events from users? |
@znortr I am having the same issue. Even on the graph explorer I can get no data on the events node to return |
@mikestaub @adf47 Tested with regular api link and also on graph explorer with no success, tested also with page id ! But it seems that they restricted the api @kaitoqueiroz What do you mean ?? |
@znortr You can store a event from a registered user and provide to another users. If you have a good quantity of users, maybe you can have a good database of events by area. It's not the best solution, of course. But it's better than nothing. |
I don't really think it makes a lot of sense to use User Events, because the most of the "professional events" are created by pages. You'd have to have a really large user group to have a decent amount of events available. I fear we reached a dead end with the Graph API and event data. No one I know of was able in the last months after the API changes to get access to the Event API data. I added a hint in the README regarding this. Unfortunately, there's nothing more I can do at the moment. |
What's everyone using as an alternative to Event API data? Is there a 'next best' available? |
Any news? |
@lifeact the link is offline. https://codecanyon.net/item/wordpress-automatic-plugin/1904470 |
@lifeact can you explain everything? |
@andreandev I think the comment from @lifeact has nothing to do with the actual problem. FB still hasn't opened up (and probably never will) the access to the Events via API. I highly doubt that a Wordpress plugin can actually get the data out of thin air. |
@lifeact this doesn't solve the original question. Please don't advertise Wordpress plugins in this issue. |
@tobilg ok, sory, thise is not AD. I show my way to decide problem |
A dig from the past 🚨 |
I'm able to get events from pages I don't have a role in with {page-id}/events |
@entin-hun Do you have a verified app in Facebook Developers ? |
Our app's status is "Live", with the following permissions only: |
@entin-hun which Graph-API version ? |
latest, 3.3. (using the new beta and previous as well) Doesn't it work for you? |
Definitely does not work for me. Says your app needs to get approval. Are you sure you are not related to the page in any way? I've made that mistake before and got excited. Otherwise, you must just be extremely lucky. |
@lostpebble i don't think it as a luck. I'm sure he sees the events from his page, because i tried again now and its still a 400 😢 |
any luck folks getting somehow public events ? |
I think it's time to move on with this. With their recent "focus on privacy" announcements, there is probably zero chance that they allow access to this data ever again. |
is there by any chance any window for research centers and researchers in general that participate in Horizon2020 projects to get access in this info ? I mean social media analytics is a study field and no one can solely rely on twitter |
This is actually public data.. always was. The API provided data on publically open events. Their excuse of "privacy" for shutting this endpoint down is ridiculous. Let's not dance around the fact that this is FB giving the middlefinger to developers of their events API in order to have a monopoly on events information for their next product iterations. I hear they have a big focus on events coming up. In any case, I agree. This ship has sailed. |
Everything is fine, i changed anything and start getting this error
i think could be some return that has changed in the graph api
The text was updated successfully, but these errors were encountered: