Category Archives: Facebook

Facebook API: Like button event problem (FB.Event.subscribe(‘edge.create’…)

Original problem: FB API edge.create method not fired on Like with URL different from current page. Bug link: I’ve solved the problem. You have to use the url_like table: //Facebook API – Unlike event. FB.Event.subscribe(‘edge.remove’, function(response) { console.log(‘uid’,uid); var … Continue reading

Posted in edge.create, Facebook, JavaScript, like event | Leave a comment

PHP: how to query sharing and likeing count from Facebook, Twitter, Google Plus

/** * * @param string $content_url */ public static function getFacebookShareCount( $content_url=” ) { if ($content_url == ”) return 0; $result = array(); $url = “”.urlencode($content_url); $xml = file_get_contents($url); $xml = simplexml_load_string($xml); $result[‘share’] = (int)$xml->link_stat->share_count; $result[‘like’] = (int)$xml->link_stat->like_count; $result[‘comment_count’] = … Continue reading

Posted in Facebook, Google Plus, php, shared content, Twitter | Leave a comment