So, I am trying to do a simple query which works fine when I put in the URL manually as a string. But when I put it as a variable it doesn't work. I even checked the variable and the variable has the URl in it. Never put a variable in a WHERE statement so not sure if it is an echo thing or what, just that nothing seems to work.
$external_result = $facebook->api(
array(
'method' => 'fql.query',
'query' => 'SELECT share_count,
like_count,
comment_count,
total_count
FROM link_stat
WHERE url="{$urlf}";'
)
);
echo $external_result[0]['total_count'];