Categories
codeofaninja.com

Changelog: Facebook Photos Script

This blog post is a “changelog†of our Facebook Photos Script found in this page: How To Display Facebook PHOTOS On Your Website We think that a source code changelog looks better on a webpage than on a text file. One main reason is the syntax highlighting. Also, this changlog will make it easier for […]

CHANGELOG-display-facebook-photos-on-website

This blog post is a “changelog†of our Facebook Photos Script found in this page:

How To Display Facebook PHOTOS On Your Website

We think that a source code changelog looks better on a webpage than on a text file. One main reason is the syntax highlighting.

Also, this changlog will make it easier for people to find out if there’s any changes with the our code.

Possible reasons for a source code update:

Facebook Graph API updates, extra script features and performance enhancements.

PRO Version

* v081120151

1. Make photos larger

On your photos.php, make the fields variable the the following:

$fields="source,name,link,likes.limit(0).summary(true),comments.limit(0).summary(true),images";

On your photos_template.php, add the following code under the ‘for’ loop:

$source_large = isset($obj['data'][$x]['images'][0]['source']) ? $obj['data'][$x]['images'][0]['source'] : "";

Still under the photos_template.php ‘for’ loop, make the href link to $source_large, like the following code:

echo "<a href='{$source_large}' title="{$likes_count} Likes. {$comments_count} Comments. {$name}" data-gallery>";

* v041420151

1. updated api to v2.3
2. shows like count and comment count in index (albums) page
3. formatted mention codes in index (albums) page
4. album has link to fb
5. shows photos count, like count and comment count in photos page
6. shows album description in photos page
7. shows like count and comments count of each photos in photos page
8. each photo has link to fb
9. photos full view when clicked
10. shows photo description, prev and next button in full view
12. autolink fb page mentions in description
13. autolink urls in description

Leave a Reply

Your email address will not be published. Required fields are marked *