hungdev / react-native-instagram-login

a react native instagram login component (support android & ios). Pull requests are welcome!
https://www.npmjs.com/package/react-native-instagram-login
184 stars 103 forks source link

How post picture to profile? #75

Open oleg90990 opened 4 years ago

oleg90990 commented 4 years ago

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)} />

AmirDoreh commented 3 years ago

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 !