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
1
vote
1 answer

InstaSharp authentication without user interaction

I'm trying to write a service, that can get the Instagram feed for a specific user. Im using InstaSharp, but I can't figure out how to do the authentication without redirecting the end user to a https://api.instagram.com/oauth/authorize url I can't…
Mikkel Nielsen
  • 792
  • 2
  • 13
  • 36
1
vote
0 answers

Using instasharp to access instagramm api

I'm trying to access the instagramm api using the instasharp nuget package. Now I've been checking the github readme, to get some further informations. Link: https://github.com/InstaSharp/InstaSharp So I started to store the keys inside my…
d45ndx
  • 89
  • 8
1
vote
0 answers

How to upload photos on Instagram via C#

so thats my challange: try to upload a photo to instagram via you PC. I didn't want to use the official API from Instagram and i know that they may bann me. I googled arround and found the "InstaSharp" lib. https://github.com/Codeusa/InstaSharp. My…
TheRealLife
  • 375
  • 4
  • 20
1
vote
0 answers

InstaSharp: Can not get the access token

I am using InstaSharp in a WPF application. I have read the documentation of InstaSharp. And here is the code I tried. InstagramConfig config = new InstagramConfig(clientId, clientSecret, redirectUri, realtimeUri); var oAuth = new…
Sarmad
  • 303
  • 3
  • 16
1
vote
1 answer

How do I get all recent instagram media by a user?

I am using InstaSharp to try and get a user's latest media posts. I am getting error: {"Exception has been thrown by the target of an invocation."} Here is my code: public async Task GetUserRecentMedia(string userId) { …
ibexy
  • 609
  • 3
  • 16
  • 34
1
vote
1 answer

Instasharp Tags.Recent returns 0 results

I am trying to get recent Instagram photos by specified hashtag using Instasharp library. My sample application looks like private void button1_Click(object sender, EventArgs e) { GetInstagramPhotosAsync(); } async void…
AndrewR
  • 592
  • 2
  • 6
  • 20
1
vote
1 answer

Sandbox OR Test Environment for Instagram API

Good Day, Please share your input if there is any working Sandbox OR Test Environment for Instagram API where i can test and run my code. I prefer to work with Instashrp library but any other tool will be fine as well. Thanks
Tiyyob
  • 89
  • 1
  • 12
1
vote
1 answer

C# - Instasharp - How to use Pagination

I am creating a small program to get a instagram users following list using C# and instasharp. The code below will get me the first 50. I believe I have to use the pagination option to get the next url to get to the next page. Thats where Im…
Tony
  • 11
  • 1
  • 2
0
votes
0 answers

InstaSharper follower count

I'm trying to get Instagram follower numbers, but I always see 0 when I go out. I will be glad if you help I will be glad if you help I'm trying to learn instasharperi, I'm trying to do a lot of automation related to the subject. I'm trying to learn…
0
votes
1 answer

Upload Image To Collection Using InstaSharp or InstagramApiSharp?

I want to upload images to my Instagram account using an Api like InstaSharp or InstagramApiSharp on Github and C#. But have no idea how to do it. There is UploadPhotoAsync() but can't specify what collection it should be uploaded to. Anyone have…
GRF
  • 171
  • 2
  • 10
0
votes
0 answers

Issue using SearchHashtag Instasharper

I have been using this api to get User followers , following etc and the result returned is with a token that can be used in next hit to carry from that onward however i cannot find anything like that on this api : SearchHashtag I have rank token…
confusedMind
  • 2,573
  • 7
  • 33
  • 74
0
votes
0 answers

How to use string from user input to complement an object in C#

So I am using InstaSharper, and I want to make the user to type in their name of target user, however, Instead of processing the data, it just does nothing at all. Here's my code: class Program { //username and pass #region Hidden …
0
votes
0 answers

How to get media by Location Id

Im using the private api InstaSharper, c# I got all the media using tags without problems, however when i try to get media by location id, the result returns Null. IResult LocationSharch= await api.GetLocationFeed(2593354,…
0
votes
1 answer

How to get User ID by InstaSharper

I'm learning InstaSharper, but I can't understand how to Follow/Unfollow user. Because UnFollowUserAsync requires UserId. Can you tell me please how to get User's ID, or maybe there are other ways to follow/unfollow users. Thanks in advance
vanya
  • 21
  • 2
0
votes
0 answers

New login email repeatedly

I'm using instasharper library https://github.com/a-legotin/InstaSharper in one project and I have mails like New login to Instagram from Instagram app on Asus razor every time when I'm trying to run my app and login to Instagram servers. I found…
evgeny
  • 1