Error: Facebook Graph API v2.8 Depreciated - facebook-graph-api

I am getting the following error when making calls to Facebook Graph API V2.8:
(OAuthException - #2635) (#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v2.9.
According to FAcebook docs v2.8 should be available until April 2019. Sample call:
https://graph.facebook.com/v2.8/{campaignId}/adsets/?fields=id,budget_remaining,campaign_id,configured_status,billing_event,created_time,daily_budget,effective_status,end_time,is_autobid,is_average_price_pacing,lifetime_budget,name,bid_amount,promoted_object,start_time,status,pacing_type,targeting&limit=1000
I would appreciate if any folks using version 2.8 report if they have received these errors.

Related

How do you handle a discrepancy in what version of graph API FB says you're referencing, and what you're actually referencing?

Facebook says we're referencing v2.6 of the graph API currently, but
our code says otherwise.
Web: Currently on v2.8 and v2.9
IOS: Currently on 4.28 which uses Facebook Graph API v2.9
Android: Currently on 4.33 which uses Facebook Graph API v3.0
But this is what I see in the developer area on FB: https://imgur.com/OJTNQnu and https://imgur.com/94MaBJ8
Looking for recommendations on how to make sense of this. I'd like to avoid scrambling to upgrade if we don't need to for several more months.

I can't get my cover using facebook graph api v3.0

I am building social networking mobile app using Ionic Framework 3.
I have to get user's cover to make the profile screen.
I could get it using facebook graph api v2.12.
But I can't get it using v3.0 .
Can anyone help me what the reason is?
Please check this image https://i.stack.imgur.com/bWU18.png
According to the changelog, the cover field is deprecated and will not work in v3.0 of the Graph API anymore:
https://developers.facebook.com/docs/graph-api/changelog/version3.0#gapi-change

Facebook Graph API pages/conversations/messages endpoint error (suddenly seems deprecated)

I've been successfully pulling messages from my pages using the Facebook Graph API until today when I started getting an error:
GraphAPIError: (#12) This endpoint is deprecated for versions v2.4 and higher
I double checked my permissions using the Graph API Explorer tool, and replicated the error there:
I also double checked the Conversation Facebook Graph API reference, and it says
GET graph.facebook.com/{id}?fields=messages{message}
should work to access the content of a specific conversation, however I keep getting the deprecation error any time I'm trying to access to messages field.
Any thoughts what could have broken since yesterday, or an alternative way to extract my page messages trough the Graph API?
This is a Facebook bug that's being treated as high priority.
Hopefully they'll fix it soon.
https://developers.facebook.com/bugs/163782704230317/

Why is Facebook claiming that my facebook app 'is still calling Graph API v1.0' if I specified v2.2 version in koala?

We have recently received two alerts regarding our facebook app.
Your app is still calling Graph API v1.0 which will be
deprecated on April 30, 2015. You must upgrade this app to v2.0 or
greater before that date.
To help you experience the potential effects of this migration,
starting tomorrow at 12pm PST, the admins, developers, testers and
Test Users associated with this app will be upgraded to use API v2.0
by default. This change won't affect your public users until April 30,
2015.
You'll be able to temporarily opt-out of this behavior in the
Migrations tab of your app's dashboard - but the migration will be
automatically re-enabled every two weeks until April 30, 2015.
For more information, please read our upgrade guide and login review
guide.
The second one is very similar and starts with:
We have detected that your app is still calling Graph
API v1.0 which will be deprecated on April 30, 2015. You must upgrade
this app to v2.0 or greater before that date.
However, we have been using Graph API v2.2 for serveral months now by specifying api version in koala config (we always use koala to call GraphAPI):
Koala.config.api_version = "v2.2"
Since we need the subscribed_apps endpoint, we are using v2.2. Switching to v1.0 results in OAuthException, code: 12, message: (#12) Requires version v2.2 or higher [HTTP 400] in case of subscribed_app calls.
I know that not specyfing a version at all results in choosing the oldest available one but we have specified the version in koala, so it's not the point in our case.
Is it possible to find out what caused the alert from Facebook?
I have found an answer to my problem and would like to present all the facts.
For older applications you will see a different message, for example that your app upgrade is completed in 98%.
For applications created quite recently (mine was created in July 2014) that are already version v2.0 or higher you might receive an alert but the message you can check at https://developers.facebook.com/apps/upgrade/ says:
You do not need to upgrade any apps.
I also received a piece of advice from Facebook:
If you're confident your app is upgraded, you can go into the
Migrations tab of the Settings section of the App Dashboard - and flip
the "Use Graph API v2.0 by default" switch to "On" - then you can be
sure you're API migration is ready for April 30th.
If you don't see that setting then you're already using v2.0 or
greater, so you have nothing to worry about.
If you are sure that neither your server-side calls nor your client-side logins use version v1.0 or you chose option "Use Graph API v2.0 by default", you can assume that your app is ready for April 30th and ignore the alerts.
Here you can find some information about the bug that probably causes these alerts: https://developers.facebook.com/bugs/957020271005002/. This issue won't be fixed.

Error: REST API is deprecated for versions v2.1 and higher

I use this script and I have the following error:
REST API is deprecated for versions v2.1 and higher
Do you know why I'm getting this?
The error says it all. REST API calls are no longer supported by the API in Graph API v2.1. You should get up to date and use the official Facebook SDK to create your Facebook application.
v2.0 is still available until August 7, 2016. So, you can still use the REST API if you like. You are probably getting this because your API calls are either unversioned or they are versioned to v2.1. See this