JSONP和Framework7

I'm trying to get images from Instagram public api via ajax and JSONP:

var target = https://www.instagram.com/p/BP3Wu_EDXsjdT5Llz13jFv2UeS0Vw0OTxrztmo0/?__a=1?callback=?';    

$$.ajax({                 
                  type: "GET",
                  dataType: 'json',
                  crossDomain: true,
                  url: target,

                  success: function(data){
                    console.log(data);
                  },                  

                error: function(xhr,status){
                    console.log("Error"+status);
                }
            });

I'm getting: Uncaught SyntaxError: Unexpected token <.

What's wrong? Thanks

A few mistakes...

var target = 'https://www.instagram.com/p/BP3Wu_EDXsjdT5Llz13jFv2UeS0Vw0OTxrztmo0/?__a=1&callback=';  

Changes: Missing ' at the beginning and changed second ? with &

Should work fine

That API with ?__a=1 is undocumented API and does not support JSONP, so you cannot make client side API call using AJAX, you have to make a server side http request and it will work.