Try returning the object_id object:
$object_url = 'http://google.com'; $url = 'SELECT url, id, type, site FROM object_url WHERE url = "'.$object_url.'"'; $fql_query_url = 'https://graph.facebook.com/fql?q='.urlencode($url); $fql_query_result = file_get_contents($fql_query_url); $fql_query_obj = json_decode($fql_query_result, true); $object_id = $fql_query_obj['data'][0]['id'];
source share