Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
287 views
in Technique[技术] by (71.8m points)

javascript - Show my Instagram business account photos to my website

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...