是否有人知道如何獲取與應用程序ID關聯的用戶的活動供稿?
如何獲取特定用戶的Facebook活動源
我能夠通過使用此代碼
<?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);
?>
輸出
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] =>
)
)
現在我只是想獲取獲取誰是與應用程序ID相關聯的用戶列表這兩個用戶的活動饋送(用戶ID:14529121124,100000565666371)單獨與此(54975723243503)app_id。
謝謝您的回答。我認爲feed選項會返回用戶的所有提要。有什麼方法可以過濾Feed(我只想獲取與我的應用或網站相關的Feed或活動)。 –