File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,13 @@ public function load($params) {
8888 * @param mixed $params params for the source
8989 */
9090 public function getXmlUrl ($ params ) {
91- $ content = @file_get_contents ("https://graph.facebook.com/ " . urlencode ($ params ['user ' ]));
91+ $ protocol = "http:// " ;
92+ if (version_compare (PHP_VERSION , "5.3.0 " ) >= 0 && defined ("OPENSSL_VERSION_NUMBER " )) {
93+ $ protocol = "https:// " ;
94+ }
95+ $ content = @file_get_contents ($ protocol . "graph.facebook.com/ " . urlencode ($ params ['user ' ]));
9296 $ data = json_decode ($ content , TRUE );
9397
94- return " https:// www.facebook.com/feeds/page.php?format=atom10&id= " . $ data ['id ' ];
98+ return $ protocol . " www.facebook.com/feeds/page.php?format=atom10&id= " . $ data ['id ' ];
9599 }
96100}
You can’t perform that action at this time.
0 commit comments