$fql_query_url = 'https://graph.facebook.com/'
. '/fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()'
. '&access_token=' . $access_token;
$fql_query_result = file_get_contents($fql_query_url);
$fql_query_obj = json_decode($fql_query_result, true);
foreach ($fql_query_obj['data'] as $row) {
echo $row['uid2'];
echo ',';
}
Expected Result Is
xxxx,xxxx,xxxx,xxxx,xxx,xxxx
It Was Working, Was Getting All Ids comma seperated
but Now It Showing error
Warning: Invalid argument supplied for foreach() in xxxx.php
Some1 Please help
Try
if
$fql_query_objis a 2D array, if its a 1D array then try