Hi I'm beginner programmer
I'm trying to use instagram's realtime Photo Updates api
My purpose is use this API CONSOLE's subscription method
https://apigee.com/console/instagram
But I can't understand and handle callback url
What is the callback url's function?
And How can I implement the callback url?
Create or open a workflow and select the Call an API action. Select a Request type of POST or PUT . Check the box labeled Add an API callback. Configure the rest of the fields as needed, then click Save.
A callback URL is an address that a server provides, and any computer in the Internet/private network can POST data to it. This method is more efficient than a computer continuously waiting or polling for data.
The "callback url" (also referred to as redirect_url
), is the URL Instagram will send users to after they have logged into Instagram, and authorized your application to read their data.
This is part of the OAuth 2 Spec, which Instagram (and many others) use to control access to their API.
The short version of the OAuth 2 "flow" is this:
GitHub has an excellent guide to how OAuth works on their server, which you will find very similar to Instagram's.
So the "callback url" should be set to the URL of your application server. For example, http://myapp.com/auth
. Or, if you are working locally, you would use http://localhost:3000/auth
.
Note: With Instagram (as well as most other APIs), the callback URL is permanently set when you register your client. So you'll often have to create separate clients for your live server, and your local one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With