http://graph.facebook.com/fql?q=SELECT%20u...troju.html'
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count,commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='{$url}'"); curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com/"); curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.1; U; pl) Presto/2.10.289 Version/12.01'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_COOKIE, 'datr=GwV6UsMG6uiUjaYD61SeDgzY; csm=2; fr=0D91crqH61C9xF0lH.AWXpfKwWhT6_689TtsTI0PNSATI.BTbmy7.jy.FOx.AWWcO3DG'); $output = curl_exec($ch);
Wiecie może dlaczego tak się dzieje?