Category : embed

I tried to make posting with Instagram embed the same way I made my Twitter embed. Like this: if ((endsWith($parsed[‘host’], ‘instagram.com’) || ($parsed[‘host’] == ‘instagr.am’)) && ($segment[1] == ‘p’)) { $json = using_curl("https://api.instagram.com/oembed?url=".$url); $obj = json_decode($json); $embed = $obj->html; $embed = preg_replace(‘/[x00-x1Fx80-xFF]/’, ”, $embed); } and it doesn’t work. I got Trying to get property ..

Read more