Hackerstat / website

A website that allows developers to be able to aggregate their achievements, work experience, and code into one place
https://hackerstats.io/
1 stars 0 forks source link

Instagram integration #71

Open Cgunter1 opened 3 years ago

Cgunter1 commented 3 years ago
LouisIV commented 3 years ago

He might have an issue with Facebook's graph API here. You might need to do web scraping

Cgunter1 commented 3 years ago

I don't see where the problem would be with Facebook's Graph API. The main implementation of this would be authenticating the Instagram user by retrieving their long-lived token (i.e. expires 60 days) and retrieving that instagram personal info and images/videos.

At all possible, I would like to limit any type of web scraping. The only snag with the Instagram API is that the max length of a long-lived token is 60 days, unless that token is called in a HTTP statement to refresh it. There would need to be like a cron job or something like it to refresh all instagram tokens for all users every ~40-60 days.