It's C# wrapper to use Instagram API.
To install InstagramWrapper, run the following command in the Package Manager Console
PM> Install-Package InstagramWrapper
or Download Project and add reference InstagramWrapper.dll on your project.
You must add Json.net(v 6.0 or Higher) references on your project
To install Json.NET, run the following command in the Package Manager Console
Install-Package Newtonsoft.Json
if you've already instaled (lower than 6.0) run this. command.
Update-Package Newtonsoft.Json
Register your application on Instagram Developers. While creating your app you must provide a redirect url. During the development application you can host your application on localhost
Instagram Authentication Document If you are developing a web application create a Sign in Link
https://instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token
Sign in wit Instagram
For other type porjects (win form, store app or win phone) use web browser component and redicet login url.
However, if you plan on asking for extended access such as liking, commenting, or managing friendships, you’ll have to specify these scopes in your authorization request. Here are the scopes we currently support:
basic
: - to read any and all data related to a user (e.g. following/followed-by lists, photos, etc.) (granted by default)comments
- to create or delete comments on a user’s behalfrelationships
- to follow and unfollow users on a user’s behalflikes
- to like and unlike items on a user’s behalf
add scope parameter in your sign in url: scope=likes+comments
After user signed in your application you'll get a code to get access token on redirect url.
http://your-redirect-uri?code=CODEIt's easy to get an access token via C# SDK.
InstagramAuth ia = new InstagramAuth(); InstaConfig ic = new InstaConfig(); ic.redirect_uri = ""; your app redirect url ic.client_secret = ""; your app secret ic.client_id = ""; //your app client id var user = ia.GetAccessToken(code,ic); // get user who loged in with an access_token
Keep Development Alive PayPal cagri058@hotmail.com