Questions tagged [instasharp]

InstaSharp is a C# library that wraps the Instagram API and makes it easy to write applications with Instagram data.

The Project is under the Apache License Version 2.0, the source code can be found on GitHub. The library makes it easy to authenticate with Instagram and your developer account. Then you can send request through the API and handle the the response in a callback.

36 questions
6
votes
0 answers

InstaSharp API - Get data from specific tag

I'm using InstaSharp API to load pictures from my instagram into my website. Now I'm trying to get all data iincluding a specific hashtag, but the only thing I get is one random object(picture-data) added to my list (result.Data). And it's always…
user3228992
  • 1,373
  • 1
  • 16
  • 31
4
votes
1 answer

Instasharp in a Console Application

I have a .net console application that I want to use to pull Instagram posts via the Instasharp wrapper using a hashtag search. I use C# .net web forms extensively and am not very familiar with MVC nor how to use the await keyword. The code sample…
Rob Gaudet
  • 131
  • 2
  • 14
3
votes
1 answer

C# InstaSharper: Unable to upload photo: Unexpected character encountered while parsing value: S. Path '', line 0, position 0

I'm using this library as a NuGet package(InstaSharper) for instagram bot program: https://github.com/a-legotin/InstaSharper And in the InsertImage(); function, which is meant for uploading a photo to instagram page, while parsing, the program runs…
aBather
  • 31
  • 1
3
votes
2 answers

How to follow a user with InstaSharp in C#

I have a problem with following a user on Instagram with InstaSharp Here is my code: private async void Follow() { var followMe = await api.FollowUserAsync(userID); if (followMe.Succeeded) { MessageBox.Show("Followed"); } …
user6845869
3
votes
3 answers

Getting an error with Instagram when trying to authenticate

In a Universal Windows App (UWP), I'm trying to log the user into his/her Instagram account, but have no luck. I keep getting the following error after the user enters their credentials and pressed the login button: Here is the code being used: var…
Maximus
  • 1,441
  • 14
  • 38
3
votes
1 answer

oAuth.RequestToken(code) in instasharp does not work and returns null

I have an ASP.NET MVC5 application that use instagram via Instasharp. My app worked good even 2 weeks after being approved by Instagram. But suddenly stopped working and by checking line by line of codes using instasharp I found that after receiving…
morteza
  • 31
  • 4
3
votes
1 answer

How to do a request with Instasharp

I have to do some requests with instasharp but I don't know how to do it, I tried something after searching on the site but it makes Visual Studio freeze. Here is my code, in this one I just want to make a simple request (getting location by their…
Pop Grade
  • 47
  • 3
3
votes
1 answer

Why the same Access Token works for Media but doesn't work for Feed?

I'm using InstaSharp to get all medias from my account. This code works without any error: var user = new InstaSharp.Endpoints.Media.Authenticated(config, authInfo); var media = user.Popular(); Now if I do the same with Users: var user = new…
Selman Genç
  • 100,147
  • 13
  • 119
  • 184
2
votes
1 answer

Return Value of oAuth.RequestToken(code) is null Always in InstaSharp

I am using InstaSharp for my ASp.Net MVC application. My problem is every time following code returns null. ( RequestToken(code) always return a OAuthResponse Instance with AccessToken = null , User = null) OAuthResponse oAuthResponse = await…
Krishan
  • 2,356
  • 6
  • 36
  • 47
2
votes
1 answer

Login Page of Instagram is not found using Instasharp

I am using Instasharp library to communicate with Instagram. After passing required parameters and building the link for authentication. System shows the screen that page not found (supposed to be Instagram Authentication Page for login) My code is…
Tiyyob
  • 89
  • 1
  • 12
2
votes
3 answers

How do I access pagination in UsersResponse from the Relationships endpoint in InstaSharp?

I have an InstaSharp.Endpoints.Relationships.Authenticated object EP_RELATIONSHIPS, and I can call EP_RELATIONSHIPS.Follows() to get a list of users I'm following. I follow a few hundred people, but I only get a result of 50. When I check the JSON…
user1002358
  • 2,852
  • 6
  • 22
  • 32
1
vote
1 answer

Unable to upload photo to Instagram with InstagramAPISharp UploadPhotoAsync() method

I'm trying to upload a photo from my pc to my instagram page but it keeps giving me a "ProcessingFailedError". Heres all the code I'm using to try and upload. Its meant to be a small program. Heres the Github for the API:…
zaid iqbal
  • 101
  • 1
  • 2
  • 11
1
vote
1 answer

Argument 1: cannot convert from 'System.Timespan' to 'Instasharper.Classes.IRequestDelay'

So recently I've been having problems trying to figure out how to solve this error im getting in Visual Studio, im trying to build an instagram bot using Instasharper and since im fresh new to working with API's, boting,builders, etc, I cant seem to…
eXyLE
  • 19
  • 2
1
vote
1 answer

Upload Photo to Instagram with InstaSharper in Asp.net Core

First I login by InstaSharper. I try to upload photo with caption by this code. var mediaImage = new InstaImage { Height = 1080, Width = 1080, URI = new Uri( Path.GetFullPath("image.jpg"),…
Morteza
  • 151
  • 3
  • 14
1
vote
1 answer

Hung returning Follows data from Relationships endpoint

I'm trying to return a list of followed users from the Instagram API. I'm on a sandbox account using the InstaSharp wrapper for .NET. The action method is being called after user is authenticated. public ActionResult Following() { var…
tqrecords
  • 542
  • 1
  • 5
  • 20
1
2 3