I'm stuck on the new Instagram API, where it is a requirement to use an Enforced Signed request, that uses both an Access Token and the Client Secret to make a Signature.
If anyone has any time at all to look, I would really appreciate it
I have generated the Signature here using PHP... http://samwhiffing.co.uk/nin3lives-feed/instagram.php
How do I implement it into this $.ajax request?
I tried this but it didn't work...
$.ajax({
type: 'GET',
dataType: 'jsonp',
cache: false,
url: 'samwhiffing.co.uk/nin3lives-feed/instagram.php',
success: function(res) {
for (var i = 0; i < 4; i++) {
$('#instagram-feed').append( addPhoto( res.data[i] ) );
}
}
});
I also tried manually entering it here, which didn't work either...
$.ajax({
type: 'GET',
dataType: 'jsonp',
cache: false,
url: 'https://api.instagram.com/v1/users/self/media/recent/?sig=c3d9934a58bee276ba43a421d8454a2d6efff3c58140efff07782a64a0e3587b',
success: function(res) {
for (var i = 0; i < 4; i++) {
$('#instagram-feed').append( addPhoto( res.data[i] ) );
}
}
});
This is the documentation: https://www.instagram.com/developer/secure-api-requests/
Thanks,
Sam