<?php include_once "src/facebook.php"; $app_id = 'hidden'; $application_secret = 'hidden'; $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $application_secret, 'cookie' => true, // enable optional cookie support )); $u=1; if ($u<2) { $user = $facebook->getUser(); $uid = $facebook->getUser(); $me = $facebook->api('/me/friends'); echo "<br />Total friends".sizeof($me['data'])."<br />"; echo "<br /> Friends collage<br /><br />"; foreach($me['data'] as $frns) { echo "<img src=\"https://graph.facebook.com/".$frns['id']."/picture\" title=\"".$frns['name']."\"/>"; } echo "hello"; echo "<br /><br /><br /> By <br /><a href=\"http://facebook.com/infostealar\"><img src=\"https://graph.facebook.com/177257699103893/picture\" title=\"infostealar\"/></a>"; echo "hello"; } else { echo "else"; $loginUrl = "https://graph.facebook.com/oauth/authorize?type=user_agent&display=page&client_id=APPID &redirect_uri=http://apps.facebook.com/CANVAS URL/ &scope=user_photos"; echo '<fb:redirect url="' . $loginUrl . '"></fb:redirect>'; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)