Do any one know how to fetch activity feed of an user who is associated with an app id ?
I am able to fetch the list of users who are associated with an app id by using this code
<?php
require "facebook.php";
$facebook = new Facebook(array(
'appId' => '',
'secret' => '',
));
$user = $facebook->getUser();
if ($user) {
try {
$result = $facebook->api(array(
"method" => "fql.query",
"query" => "SELECT uid, name, pic_square, activities FROM user
WHERE uid IN (SELECT uid1 FROM friend WHERE uid2 = me()) and is_app_user"
));
echo "<pre>";
print_r($result);
?>
Output
Array
(
[0] => Array
(
[uid] => 14529121124
[name] => Saurabh
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-ash4/187195_1452918224_6692287_q.jpg
[activities] =>
)
[1] => Array
(
[uid] => 100000565666371
[name] => Abhijeet
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-prn1/157718_100000289210371_1409561577_q.jpg
[activities] =>
)
)
Now i just want to fetch activity feed of these 2 users (User Id: 14529121124 , 100000565666371) individually who are associated with this (54975723243503) app_id.