4

I am developing backoffice standalone application that gathers some data from facebook API and stores it in local DB for reporting purposes. Now I need to read some metrics from Instagram account (also via facebook graph API). I read this tutorial: https://developers.facebook.com/docs/instagram-api/getting-started , but as far as I understand it it is designed for web applications. Durig the registration process some screencasts are required that are irrelevant in my case.

I just need access token that will allow me to read metrics from my Instagram account that is connected to my facebook page. Does anyone know how to get it?

majkel
  • 51
  • 1
  • 3
  • You don't need to submit permissions for review, if you are only going to use the app yourself. https://developers.facebook.com/docs/apps/faq#faq_180362122361921 – CBroe Oct 16 '17 at 11:31
  • My application runs as cron process every night without any user interaction, so it needs kind of permanent access token. How can I get it? – majkel Oct 16 '17 at 13:29
  • https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension – CBroe Oct 16 '17 at 13:30

1 Answers1

1

Check out this post: facebook: permanent Page Access Token?

This gives a pretty comprehensive walkthrough of how to get a short-lived, long-lived and permanent access token via the Graph API.

It may be a little late in your case but if you're still looking for a solution without building any front-end, then you could use the Graph API Explorer (https://developers.facebook.com/tools/explorer/) to obtain a shorted-lived token, then follow the steps in the link above to acquire the permanent token, which can all be done via your own back-end. Be aware that the short-lived tokens give you between 1 and 2 hours of use before they need renewing.

georgeperry
  • 104
  • 2
  • 12