I have a website, one Facebook page, one Instagram business account linked with that page, and one app with basic settings. I want to display my Instagram account photos on my webpage. I don't want to use any 3rd party site or widget. Is this possible to achieve this using javascript or PHP?
I already implemented Facebook login using the below code:
window.fbAsyncInit = function() {
FB.init({
appId: 'MY_APP_ID',
oauth: true,
status: true,
cookie: true,
version: 'v9.0',
xfbml: true
});
};
function fb_login() {
FB.login(function(response) {
if (response.authResponse && response.status == 'connected') {
console.log(response);
access_token = response.authResponse.accessToken;
user_id = response.authResponse.userID;
FB.api('/me', { fields: "id,name" }, function(response) {
var name = response.name;
console.log(response.status);
});
});
} else {
console.log('User cancelled login');
}
}, {
scope: 'public_profile,email'
});
}
question from:
https://stackoverflow.com/questions/65599852/show-my-instagram-business-account-photos-to-my-website 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…