Instagram for desktop.. So i was faced with the issue of: how…
By: Liam Rogers
Tags: Instagram, Code, How To, Programming, Features

So i was faced with the issue of: how can one be limited by Instagram — immediately i came to the conclusion of the device you’re using’s battery capacity, once that’s dead your access is also removed. So i set out to create a functional desktop app that allowed you to post content from your desktop/laptop so you can never be stuck for a post.

Visual Studio 2019 Welcome Screen

In this tutorial i will be using Visual Studio 2019 and Importing CefSharp library. So first you want to open up visual studio and you will be welcomed with four options, select create a new project

Create a New Project Screen

Next, You want to filter the drop-down boxes until you come to “Visual Basic, Windows and desktop” which will lead you to an option of “WindowsForms App (.NET)”

Create a new windows forms app and choose your naming structure as desired. Also, where you would like the solution and project directory to be placed, now we are ready to start developing the design elements.

Once the project has been created you will reach the design part if the winform app in this IDE in which you want to open your toolbox from the left side in the default configuration and drag a “panel” into your window area

Then you want to drag each corner of the panel to fill the window content box, once done you want to right click your solution in the “solution explorer” and click “manage NuGet Packages” which will open up a separate window where you want to search for “CefSharp” and you want to checkbox and install each of the following: “Cefsharp.Common, CefSharp.WinForms and CefSharp.Wpf” You now want to go back to your Form1.vb Design window and double click the blue bar at the top.

For Simplicity of a larger potential audience i am going to provide the code you then want to copy into your Form1.VB code window:

Imports CefSharp

Imports CefSharp.WinForms

Public Class Form1

Private WithEvents Browser As ChromiumWebBrowser

Public Sub New()



InitializeComponent()



End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

Dim setting As New CefSettings With {

.RemoteDebuggingPort = 8088}

setting.UserAgent = “Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4”

CefSharp.Cef.EnableHighDPISupport()

CefSharp.Cef.Initialize(setting)

Browser = New ChromiumWebBrowser(“https://www.instagram.com”) With {

.Dock = DockStyle.Fill

}

Panel1.Controls.Add(Browser)

End Sub

End Class

Your Form1.VB code should look like this:

if you now start the project “ ▷ start ” it should compile and launch a window exactly the same as this login screen where you can now sign in and get access to the mobile version of Instagram with a lot of standard features. There are however some limitations but for all intents and purposes still makes this a pretty useful addition.

You can now also compile this project into an EXE which you can launch just like any other application on your computer by opening the project containing folder which you created at the start of this process and going into the Debug folder and filtering the file type and finding a file with “your application name” with an application file type.

Thanks for reading an i hope i helped you gain a little more functionality out of your computer!