none
How to upload/post hyperlink on instagram through c# code ? RRS feed

  • Question

  • I want to upload/post  hyperlink on my instagram through C#.

    Please HELP me in this matter. 

    Monday, February 10, 2020 3:56 PM

All replies

  • See if the following may help

    https://github.com/ramtinak/InstagramApiSharp

    http://instasharp.github.io/InstaSharp/Documentation/html/c688497b-86a9-4040-b9e0-addb972beed8.htm

    https://github.com/InstaSharp/InstaSharp


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Monday, February 10, 2020 4:18 PM
    Moderator
  • Thanks for your reply, buit can you pls be more specific. I have ran his program and can upload picture on my instagram but I want to upload hyperlink too in my post but there nothing like in his api !

    Thanks in Advance,

    Regards,

      
    Monday, February 10, 2020 4:28 PM
  • Hi yahyatai,

    I found the following code in the Github library provided by karen, please check if it works for you.

    var link = "https://github.com/ramtinak/InstagramApiSharp";
    var text = $"Hi, check this awesome instagram library for .net:\r\n{link}\r\nDon't forget to report issues!";
    
    var directLink = await InstaApi.MessagingProcessor
        .SendDirectLinkAsync(text, link, requestedThreadId);

    This is the original link: Direct messaging.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 11, 2020 4:02 AM