Facebook python sdk uses marketing api or graph api - facebook

I have been using facebook python SDK for nearly 6 months for building a product.
I have dev access for the marketing api.
It frequently errors out saying Rate limit has exceeded. But when i check marketing api dashboard it says not enough data available.
So Im really confused whether SDK uses marketing API or graph API.
Can anybody explain me the usage.
Any info will be much appreciated.

Related

Facebook Graph & Marketing APIs - Postman collection available?

Is there any Postman collection available for Facebook Graph API and its "children"? (Marketing API and friends.)
I'd definitely ask somewhere on their SDKs Github page, but all of them don't allow to post any "Issues". Also, I've been surfing the web for a while on this.
A great example of what I'm after is WhatsApp's Business API Postman collection, it's publicly available here -> https://developers.facebook.com/docs/whatsapp/guides/postman/
What you are looking for is not available at this time.
Our docs are the source of truth for all API's
https://developers.facebook.com/docs/

Is there an API to find the latest version of the Facebook API?

This is a bit meta but I'm wondering if there's an API to see what the latest version of the Facebook API is. Facebook changes/depricates their APIs pretty rapidly.
It would be nice if they had an API that could be used see what the latest version is that way we can keep our usage up to do date.
One option is to scrape the changelog page but that would assume the page will change less often than the api.

Instagram API deprecation 2020

I'm building an app that has the user log in through instagram, it then reads their feed and uses that information for the app. Instagram has a page that says their API's will be deprecated in 2020 but some things will still work. It's not straightforward as to what is being deprecated and what isn't, and I have not found any way to contact them directly. Does anyone know if the following URL will continue working, and if not if this type of app will even be viable in the future? Why is IG and Facebook becoming much more closed platforms to 3rd party integrations?
https://api.instagram.com/v1/users/self/media/recent/
Deprecation notice:
https://www.instagram.com/developer/
The legacy Instagram API - https://www.instagram.com/developer/ will be deprecated in favor of Instagram Graph API provided by Facebook - https://developers.facebook.com/docs/instagram-api
In order to use https://api.instagram.com/v1/users/self/media/recent/ this endpoint you need Basic permission. As documentation says, it will be deprecated in early 2020, which means that the legacy API will be most probably shut down, since there will be no more capabilities to request for.
You should most definitely start building your app with Graph API. Please keep in mind that it takes some time before you can go live with your app. It requires couple of things like Business Verification, review of requested permissions in App review and it can take some time to be able to go live.
Please keep in mind that the Graph API works only for Instagram Business type of accounts. You can't use it for regular accounts at the moment. It is not clear yet if it will be available for all accounts, but most probably it will be in the future. It was the same as with deprecating Public Content permission on Instagram legacy API. They added similar functionality in Graph API.
If you plan to support all users, you will also have to apply for Basic capability in legacy API. In other words, you need to support both Instagram API and Instagram Graph API if you plan to target all Instagram users, both regulars and Business profiles.
Another thing to keep in mind is that you can't really report bugs or get any help from legacy Instagram API. If you will find the bug you can't report it as they do not accept it due to deprecation.
So start building with Instagram Graph API, once you will be good to go, try to add Instagram legacy API support. If everything will be fine and Facebook will add support for legacy accounts, your Graph API should easily take over Instagram legacy API functionality.
Most probably the reason why they are tightening the integrations and makes it harder for the developers is user privacy. They do not want to have yet another incident like Cambridge Analytica for instance.
It does not make sense to build something with the old API, that old API URL will definitely stop working (with all the old api.instagram.com endpoints). There is a new API though: https://developers.facebook.com/products/instagram/

Replacement for deprecated event handling in Graph API

I have a hyper-critical Facebook app (for our organization) that used Graph API v1.0 to read and post events for our [closed] Facebook group. Now that Graph v1.0 is deprecated and event support is "no longer supported" for Graph v2.0 it has literally killed our ability to use this app - or Facebook itself for our social media needs.
Are there any other or "replacement" APIs that would allow my app to post events - even if it is just into one, single, controlled group?
This isn't a great solution, but the 1.0 API will be available through April 2015. You could downgrade to the old API until then - certainly not a good long term plan, but it could give you time to find another option

Creating Facebook Ads programmatically with Ads API or Atlas API

Which API we can use for Facebook Ad creation programmatically in C#?Atlas API or ADs API. I have gone through both API documents and I find that both object names are different and Ads API is very similar to Facebook Ad fields. But I couldn't find any code samples for Ads API where as we have the code samples for Atlas API but object names are different compared to Facebook Ad. Please suggest me which API is better to use and what the process to access both Ads API.
To create ads on Facebook, you'll want to use the Facebook Ads API. This API is JSON based and pretty much any Graph API client library should be able to connect to it. One caveat is you'll need to request access to the Ads API, which might take a bit of time to get reviewed and enabled. The documentation for this API is here:
https://developers.facebook.com/docs/ads-api/
The Atlas API is primarily used to serve display ads and measure their performance. It doesn't sound like that's your primary use case here.
There are no C# Ads SDK that I am aware, but you can start with a C# Facebook SDK that will help you with lower level objects such as requests, accesstokens, batch requests etc.
http://facebooksdk.net/
And to build your Business Logic Layer, here is the spec:
https://developers.facebook.com/docs/ads-api/