okazaki
Senior Member
- Apr 16, 2015
- 886
- 409
Hi BHW,
I made a app for one of my customer and I want to share it here to BHW. the app can scrape and download all videos from a facebook page.
To use the app you need a access token and a page id
First step: Get a access token.
Visit this link and accept all the permissions.
After accepting all the permissions, you will be redirected to this URL.
To get the access token, you need to visit The above link. The token will be visible in the address bar. You will then need to select and copy the token from the "=" to the "&". The token will be valid forever so you don't need to do this step every time just save the token for another use.
Second Step: Get the page id
For example we want the ID of this page https://www.facebook.com/LADbible/
First to do is open the page --> right click in picture profile --> "copy link address"
After copying the link paste it in Notepad and extract the page id, in our example the red part is the page id
https://www.facebook.com/LADbible/photos/a.199099086803956.50560.199098633470668/2580021035378404/?type=3&source=11
App Option:
List : To list the video link in the grid.
List and download : To list and download the scraped video. the file will be saved with the caption as file name.
Likes : scrape videos with number of like from x to x .
Date : scrape videos posted in precised date.
When you choose "list and download option" the result will be like this:
Virustotal scan link
Download
I made a app for one of my customer and I want to share it here to BHW. the app can scrape and download all videos from a facebook page.
To use the app you need a access token and a page id
First step: Get a access token.
Visit this link and accept all the permissions.
Code:
https://www.facebook.com/v1.0/dialog/oauth?scope=ads_management,create_event,create_note,email,export_stream,friends_about_me,friends_activities,friends_birthday,friends_checkins,friends_education_history,friends_events,friends_games_activity,friends_groups,friends_hometown,friends_interests,friends_likes,friends_location,friends_notes,friends_online_presence,friends_photo_video_tags,friends_photos,friends_questions,friends_relationship_details,friends_relationships,friends_religion_politics,friends_status,friends_subscriptions,friends_videos,friends_website,friends_work_history,manage_friendlists,manage_notifications,manage_pages,photo_upload,publish_actions,publish_checkins,publish_stream,read_friendlists,read_insights,read_mailbox,read_page_mailboxes,read_requests,read_stream,rsvp_event,share_item,sms,status_update,user_about_me,user_activities,user_birthday,user_education_history,user_events,user_games_activity,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_questions,user_relationship_details,user_relationships,user_religion_politics,user_status,user_subscriptions,user_videos,user_website,user_work_history,video_upload,xmpp_login,offline_access,user_checkins,publish_actions,user_photos,user_videos,friends_videos,friends_photos,user_activities,user_likes,user_status,friends_status,publish_stream,read_stream,status_update,offline_access&redirect_uri=https%3A%2F%2Fwww.htcsense.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&client_id=41158896424
After accepting all the permissions, you will be redirected to this URL.
To get the access token, you need to visit The above link. The token will be visible in the address bar. You will then need to select and copy the token from the "=" to the "&". The token will be valid forever so you don't need to do this step every time just save the token for another use.
Code:
view-source:https://www.facebook.com/v1.0/dialog/oauth?scope=ads_management,create_event,create_note,email,export_stream,friends_about_me,friends_activities,friends_birthday,friends_checkins,friends_education_history,friends_events,friends_games_activity,friends_groups,friends_hometown,friends_interests,friends_likes,friends_location,friends_notes,friends_online_presence,friends_photo_video_tags,friends_photos,friends_questions,friends_relationship_details,friends_relationships,friends_religion_politics,friends_status,friends_subscriptions,friends_videos,friends_website,friends_work_history,manage_friendlists,manage_notifications,manage_pages,photo_upload,publish_actions,publish_checkins,publish_stream,read_friendlists,read_insights,read_mailbox,read_page_mailboxes,read_requests,read_stream,rsvp_event,share_item,sms,status_update,user_about_me,user_activities,user_birthday,user_education_history,user_events,user_games_activity,user_groups,user_hometown,user_interests,user_likes,user_location,user_notes,user_online_presence,user_photo_video_tags,user_photos,user_questions,user_relationship_details,user_relationships,user_religion_politics,user_status,user_subscriptions,user_videos,user_website,user_work_history,video_upload,xmpp_login,offline_access,user_checkins,publish_actions,user_photos,user_videos,friends_videos,friends_photos,user_activities,user_likes,user_status,friends_status,publish_stream,read_stream,status_update,offline_access&redirect_uri=https%3A%2F%2Fwww.htcsense.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&client_id=41158896424
Second Step: Get the page id
For example we want the ID of this page https://www.facebook.com/LADbible/
First to do is open the page --> right click in picture profile --> "copy link address"
After copying the link paste it in Notepad and extract the page id, in our example the red part is the page id
https://www.facebook.com/LADbible/photos/a.199099086803956.50560.199098633470668/2580021035378404/?type=3&source=11
App Option:
List : To list the video link in the grid.
List and download : To list and download the scraped video. the file will be saved with the caption as file name.
Likes : scrape videos with number of like from x to x .
Date : scrape videos posted in precised date.
When you choose "list and download option" the result will be like this:
Virustotal scan link
Code:
https://www.virustotal.com/en/file/4a1b2f5f05c82b1be023914003b7e03227d556ada25d73ea431ba4b4db4b2993/analysis/1464733627/
Code:
http://www.mediafire.com/download/uz5eatfj3cxv272/FVPS.rar
https://www.sendspace.com/file/mf6zo8