react-native-instagram-login icon indicating copy to clipboard operation
react-native-instagram-login copied to clipboard

How post picture to profile?

Open oleg90990 opened this issue 5 years ago • 1 comments

I created react native app and get access_token useing react-native-instagram-login.

{"access_token": "RWROQUhN...", "user_id": 17841.....}

How can I post a picture in my profile using access_token?

example code

<InstagramLogin ref={(ref: any) => (setInstagramLogin(ref))} appId='71466........' appSecret='e7ef1c0......' redirectUrl='https://127.0.0.1:8000/instagram/auth' scopes={['user_profile', 'user_media']} onLoginSuccess={(data: any) => console.log(data)} onLoginFailure={(data: any) => console.log(data)} />

oleg90990 avatar Jul 19 '20 10:07 oleg90990

you can use some sharing library for your purpose i recommend react-native-share. keep in mind you are not allowed to post to feed or story directly without instagram application !

AmirDoreh avatar Jun 24 '21 08:06 AmirDoreh