Open mbod opened 2 years ago
@atnjqt thinking through the steps here...
Steps:
Were we thinking Azure for this?
specifically to get your photos, this is me/photos
or {user-id}/photos
, for more information see https://developers.facebook.com/docs/graph-api/reference/photo/
me/photos
shows photos that my friends tagged me in... for your own photos, this is me/photos/uploaded
, what we are currently implementing, see: https://github.com/atnjqt/compassionapp/blob/aac8f807cdfc10a74ee1da2af73afddd4b7a997e/frontend/src/Components/FacebookGetPhotos.js#L22from there we can pass photo IDs at {photo-ID}/?accesToken=....?fields=webp_images
, more info here: https://developers.facebook.com/docs/graph-api/reference/photo/#Reading
On quick review, Microsoft Azure provides an npm package for integrating image analysis, we want cognitiveservices-face
but there is a whole suite of cog services available.
cd frontend
npm install @azure/cognitiveservices-face --package-lock-only
npm update
Microsoft has a few examples for integrating Cognitive Services into React apps as well:
From images pulled from a timeline (image stored locally? metadata in Mongo?) adapt instagram WWE image analysis code to submit to one or more cloud image coders and store result in Mongo