-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
executable file
·43 lines (32 loc) · 1.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FACEBOOK_PHOTOS_DOWNLOAD
1) REQUIREMENTS
First of all you have to install 'requests'.
- requests: sudo pip install requests
http://docs.python-requests.org
2) I WANT TO DOWNLOAD MY PHOTOS
Well, you have only to run the script by using:
python download_photos.py
---------------------------------------
I WANT TO DOWNLOAD MY FRIENDS PHOTO
To download your friend photos you have to edit the 'id_user' variable:
id_user = "YOUR_FRIEND_USERNAME OR UID"
You can get your friend UID by editing and then opening this link:
https://www.graph.facebook.com/YOUR_FRIEND_NICKNAME_HERE
Will appear something like that:
{
"name": "Facebook Platform",
"website": "http://developers.facebook.com",
"username": "platform",
"founded": "May 2007",
"company_overview": "Facebook Platform...",
"mission": "To make the web more open and social.",
"products": "Facebook Application Prog...",
"likes": 449921,
"id": 19292868552,
"category": "Technology"
}
You have to copy the "id" value, in this example it's "19292868552"
and paste it into the script like that:
id_user = "19292868552"
you can now run the script by using:
python download_photos.py