1.0.2 • Published 4 years ago
@hamaad/react-instagram-feed v1.0.2
React-Instagram-Feed
React component embedding users Instagram feed
yarn add @hamaad/react-instagram-feed
# or
npm i @hamaad/react-instagram-feedScreenshots
Usage
import Feed from "@hamaad/react-instagram-feed";
<Feed
userName="javascript.js"
limit={8}
clientAccessToken="123|456"
maxWidth={320}
maxContainerHeight={510}
hideCaption={false}
protocol=""
injectScript={true}
/>;Access token is combination of App Id and Client Token. See https://developers.facebook.com/docs/instagram/oembed/#access-tokens for more details.
Errors
If you dont see anything check the Console/Network tab, it usually something wrong with the token...
props
userName{String} Instagram User Name. RequiredclientAccessToken{String} Instagram Client Access Token. RequiredmaxWidth{Number} Max width. Minimum size is320. DefaultundefinedmaxContainerHeight{Number} Max continer height. Default510limit{Number} Max limit. Maximum size is12. Default12hideCaption{Boolean} Defaultfalseprotocol{String} Instagram API script protocol. Default''same as current protocol- This property needed if you use device's file system, for example, Electron, Cordova apps
injectScript{Boolean} Defaulttrue