return;
$s = fetch_url('https://graph.facebook.com/me/friends?access_token=' . $access_token);
if($s) {
- logger('facebook: fb_get_friends: ' . $s);
+ logger('facebook: fb_get_friends: ' . $s, LOGGER_DATA);
$j = json_decode($s);
logger('facebook: fb_get_friends: json: ' . print_r($j,true), LOGGER_DATA);
foreach($j->data as $person) {
set_time_limit(0);
ini_set('pcre.backtrack_limit', 250000);
-define ( 'FRIENDIKA_VERSION', '2.1.973' );
+
+define ( 'FRIENDIKA_VERSION', '2.2.975' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1054 );
*
*/
-define ( 'JPEG_QUALITY', 100 );
+define ( 'JPEG_QUALITY', 100 );
/**
* SSL redirection policies
$default = 'images/default-profile.jpg';
if(isset($type)) {
+
+ /**
+ * Profile photos
+ */
+
switch($type) {
case 'profile':
}
else {
+ /**
+ * Other photos
+ */
+
$resolution = 0;
$photo = str_replace('.jpg','',$photo);
// but who should otherwise be able to view it. Show a default image to let
// them know permissions was denied. It may be possible to view the image
// through an authenticated profile visit.
- // There won't be many complete unauthorised people seeing this because
+ // There won't be many completely unauthorised people seeing this because
// they won't have the photo link, so there's a reasonable chance that the person
// might be able to obtain permission to view it.