Python: Get list of all profile pictures using facebook-sdk -


i beginner in using facebook graph api using facebook-sdk (python package), want list of profile pictures album. here able do:

photo = graph.get_objects(ids=["me"], fields="picture") 

it gives me current profile picture. can fetch of them? possible values 'fields' here?

you have access user albums first: https://developers.facebook.com/docs/graph-api/reference/user/albums

search album name "cover photos" , use id photos photos edge:

https://developers.facebook.com/docs/graph-api/reference/album/

steps:

  • /me/albums
  • search album name "cover photos"
  • /{album-id}/photos

for example, albums python sdk:

albums = graph.get_all_connections(id='me', connection_name='albums'); 

source: http://facebook-sdk.readthedocs.io/en/latest/api.html


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -