ErrorException [ Warning ]: file_get_contents(https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url='http://zabawnekartki.pl/kartka/uwaga'): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

APPPATH/classes/Model/Card.php [ 178 ]

173 			if (!$like->loaded()) {
174 				if ($debug) {
175 					echo 'step 2';
176 				}
177 				//$data = json_decode(file_get_contents('https://graph.facebook.com/?id=' . Route::url('card::display', array('slug' => $this->slug), true)));
178 				$data = json_decode(file_get_contents('https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=\''.Route::url('card::display', array('slug' => $this->slug), true).'\''));
179 				if (isset($data->data) AND isset($data->data[0])) {
180 					$data = $data->data[0];
181 				} else {
182 					try {
183 						$this->last_likes_update = time() + rand(1, 1000);
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Model/Card.php [ 178 ] » file_get_contents(arguments)

  3. APPPATH/views/frontend/cards/list.php [ 19 ] » Model_Card->update_likes()

  4. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  7. APPPATH/views/frontend/layouts/default.php [ 117 ] » Kohana_View->__toString()

  8. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  9. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  10. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  11. APPPATH/classes/Controller/Default.php [ 119 ] » Kohana_Controller_Template->after()

  12. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Default->after()

  13. {PHP internal call} » Kohana_Controller->execute()

  14. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  15. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  16. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  17. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment

facebook