我已经要求这样的权限:
$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']。
有什么想法吗?谢谢!
答案 0 :(得分:0)
'fb_perms' => array('read_friendlists', 'friends_relationship_details', 'friends_relationships', 'friends_photos')