我已经要求这样的权限:
$config = array(
'facebook' => array(
'appId' => 'xxxxxxx',
'secret' => 'xxxx'
),
'fb_perms' => array('read_friendlists', 'friends_relationships', 'friends_photos'),
'picsize' => 'large', // avaiable options: small, normal, large, square
);
但在这儿
do
{$f1_id = $friends['data'][rand(0, NUM_FRIENDS)];
$f1_api = $facebook->api("/{$f1_id['id']}");}
while
( (!isset($f1_api['relationship_status']))||(
( isset($f1_api['relationship_status'])&&
(
($f1_api['relationship_status']== "Married")||
($f1_api['relationship_status']== "Engaged")||
($f1_api['relationship_status']== "In a relationship")
) )
));
做一个无限循环,因为 $f1_api['relationship_status'] 从未设置。
有任何想法吗?谢谢!