How post picture to profile?
oleg90990 opened this issue · 1 comments
oleg90990 commented
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
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 !