amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 302 forks source link

What is best solution to process facebook data? #63

Closed PiotrKalinski closed 7 years ago

PiotrKalinski commented 7 years ago

I'd like to invoke function from frontend to fetch facebook comments, process them and send to s3. What Is best solution? Do you have any docs about using facebook api with lambda/kinesis?

vbudilov commented 7 years ago

You can use the FB's JS libraries in this angular app as you would with any other app.

In regards to saving to S3 -- use our aws js s3 sdk: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html

In regards to Lambda/Kinesis -- that all depends on your use case. Take a look at the FB's docs: https://developers.facebook.com/docs/apis-and-sdks

Writing to Kinesis is directly correlated with your use case, so I can't really suggest anything unless I know what it is (and this forum might not be the best one for a Kinesis conversation). :)