Can you fully authenticate Facebook Graph from the command line using Python?

I am writing (with tabs) an application for Facebook that requires a background process to run on the server and periodically upload images to an album on this application page.

What I'm trying to do is create a script that will be:

a) authenticate me using the application
b) upload the image to a specific album

All this is completely from the command line and completely with the new graphical API.

My problem right now is trying to find documentation that will allow me to get a token without a popup.

Thoughts?

+4
source share
2 answers

If you only need to authenticate as a single user, you can get an access token with offline_access permission that will last forever and just bake it in a script.

+1
source

Source: https://habr.com/ru/post/1309150/


All Articles