Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Fetch image uploads from any public Facebook photo album (via the Facebook Graph API), crop to specified sizes and save to a server directory.

License

Notifications You must be signed in to change notification settings

SKempin/facebook-fetch-images-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Facebook Fetch Images Crop

License Maintenance

Fetch image uploads from any Facebook Pages photo album (via the Graph API v2.5), crop to specified sizes and save to a server directory. Images are cropped from the center outwards.

Requirements

Setup

Facebook settings:

'access_token'  => ''       // (string)  Facebook Page Access Token
'album_id'      => ''       // (string)  Facebook album ID (e.g. https://www.facebook.com/media/set/?set=a.[ **ALBUM ID IS THIS NUMBER** ].90967.383141721750246&type=3)
'image_limit'   => 8        // (integer) Number of image uploads to fetch

Image crop and save settings:

'crop_width'        => 250          // (integer) Cropped image width in pixels
'crop_height'       => 250          // (integer) Cropped image height in pixels
'quality'           => 80           // (integer) 0-100 image percentage quality
'save_directory'    => "images/"    // (string)  Save directory
'image_prefix'      => ""           // (string)  Prefix before numeral 

Usage

Make a HTTP request to fetch_images.php to execute the script. Images will be saved to your server at the location set in save_directory (default is the /images folder). Cron job a HTTP request for automatic image generations.

Author

Stephen Kempin

Licence

MIT

About

Fetch image uploads from any public Facebook photo album (via the Facebook Graph API), crop to specified sizes and save to a server directory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages