python - facebook credentials instead of access token -


i new in coding. using code:

import requests url = (       "https://graph.facebook.com/{album_id}/"       "photos?access_token={access_token}"   ).format(       album_id= "album id here",       access_token= "put here access token" ) files = {'file': open('c:\\users\\leonardo\\desktop\\black_background_texture_86812_1024x1024.jpg', 'rb')} r = requests.post(url, files=files) 

to upload image pc's folder album on facebook page using access token. how can same thing using facebook credentials , page name instead of access token? have tried inside facebook sdk documentation , pythonforfacebook documentation can't understand how use codes made php or java or ios python. thanks

use page_access_token instead of access_token can post image through page name.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -