Reputation: 10791
I am accessing the instagram API to display content from a specific account, however I get this error:
/**/ JSON_CALLBACK({"meta":{"error_type":"OAuthAccessTokenException","code":400,"error_message":"The access_token provided is invalid."}})
I have registered my app in https://www.instagram.com/developer/
bit when accessing here for example I get that above error:
var endpoint = "https://api.instagram.com/v1/users/" + user_id + "/media/recent/?";
endpoint += "?count=99";
endpoint += "&client_id=" + client_id;
endpoint += "&callback=JSON_CALLBACK";
Upvotes: 1
Views: 8785
Reputation: 12952
You cannot access this API with client_id
anymore, you have to authenticate, get an access_token
and make API call with access_token
, see documentation for this endpoint here:
https://www.instagram.com/developer/endpoints/users/#get_users_media_recent
Upvotes: 7