HOW TO RUN NEW FQL QUERY IN PHP
according to https://developers.facebook.com/docs/technical-guides/fql/ we
sholud use sign "+" but it doesnt work with my query, please help me, this
my source :
// run fql query
$fql_query_url = 'https://graph.facebook.com/'
.
'fql?q=SELECT+message+FROM+status+WHERE+uid+IN+(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);
// display results of fql query
echo '<pre>';
print_r("query results:");
print_r($fql_query_obj);
echo '</pre>';
No comments:
Post a Comment