canOpenURL: failed for URL: "instagram://app" - error: "This app is not allowed to query for scheme instagram"
Right click on your plist file and open it as source code. Then copy and paste below code:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
</array>
Note: One thing you have to keep in mind that it will not work on simulator. You need a real device for this.
Open your plist as source code and paste following code:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
</array>
The issue is that you are not registering the URL scheme in the info.plist file.
Please add this LSApplicationQueriesSchemes and add instagram in your info.plist and it will work.