keboola / ex-facebook-graph-api

facebook graph api extractor(insights and fb-ads intended)
MIT License
38 stars 8 forks source link

Instagram Extractor via Facebook Login #19

Closed kacurez closed 6 years ago

kacurez commented 7 years ago

Facebook umoznuje extrahovat data/insights instragramu cez jeho api https://graph.facebook.com/ a vysledky vracia v ronvakej strukture takze by sa dal pouzit ex-facebook-graph-api docker image na vytvorenie komponenty Instagram Extractor (via Facebook)(dalej len ig-fbex)

Dokumentacia a popis postupu od fb

https://developers.facebook.com/docs/instagram-api/getting-started

User Configuration Workflow

Uzivatel pre pouzitie ig-ex urobi nasledujuce kroky:

Postup vytvorenia a nasadenia kbc komponenty Instagram Extractor (via Facebook)

  1. Vytvorit novu fb apku Keboola Connection Instagram Extractor na https://developers.facebook.com a:
    • pridat produkt Facebook Login s Use Strict Mode == true
    • pridat produkt Instagram API s permissions instagram_basic, instagram_manage_insights ~manage_pages~
    • submitnut fb apku na review a pockat na schvalenie
  2. Vytvorit kbc komponentu keboola.ex-instagramfb podla vzoru keboola.ex-facebook
  3. Zaregistrovat novy oauth pre keboola.ex-instagramfb s permissions instagram_basic, instagram_manage_insights, pages_show_list ~manage_pages~
  4. Upravit backend tak aby k fb pages sync akce get accounts vracala ig account id tj get me/accounts?fields=instagram_business_account alebo sa vytvori nova akce get accounts for instagram
  5. Upravy ui - vytvorit ui podla sablony sucasneho ex-facebook(tj zaregistrovat routu v componentsRoutes) + vytvorit query templates pre stahovanie dat/medii a insights z instagramu
  6. Vytvorit dokumentaciu a pridat popis registracie oauthu do https://github.com/keboola/connection/wiki/Oauth-Applications
kacurez commented 6 years ago

ui a backend pripraveny na testovanie, okrem toho k public releasu este treba:

kacurez commented 6 years ago

query

endpoint: media
fields: insights.metric(impressions,reach,engagement,saved)

chybova hlaska

Facebook api error:{"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_data":{"blame_field_specs":[[""]]},"error_subcode":2108006,"is_transient":false,"error_user_title":"Media Posted Before Business Account Conversion","error_user_msg":"The media was posted before the most recent time that the user's account was converted to a business account from a personal account.","fbtrace_id":"BYNS8WYLLD3"}}