Nextrek
Diff Revisions
772
vs
773
for /Android/SmartCharging/endPoints/repositories/UserRepository.php
|
@@ -313,7 +313,14 @@ |
313 |
313 |
|
|
314 |
314 |
|
$u_id = $graphObject->getProperty('id'); |
315 |
315 |
|
|
316 |
|
- |
$fb_avatar_data = file_get_contents("http://graph.facebook.com/".$u_id."/picture?type=large"); |
|
316 |
+ |
$arrContextOptions = array( //workaround per errore SSL |
|
317 |
+ |
"ssl" => array( |
|
318 |
+ |
"verify_peer" => false, |
|
319 |
+ |
"verify_peer_name" => false, |
|
320 |
+ |
), |
|
321 |
+ |
); |
|
322 |
+ |
|
|
323 |
+ |
$fb_avatar_data = file_get_contents("http://graph.facebook.com/".$u_id."/picture?type=large", false, stream_context_create($arrContextOptions)); |
317 |
324 |
|
|
318 |
325 |
|
$image_filename = uniqid().".jpg"; |
319 |
326 |
|
|