Đếm số lượng comment và share của một link qua facebook
Tạo một hàm đọc theo bên dưới: Method 1 : Facebook Graph API PHP: function getData($username){$json = json_decode(file_get_contents("http://graph.facebook.com/".$username),true);return $json;}funciton...
View ArticleXử lý sự kiện khi người dùng click like hoặc share
Mã: FB.Event.subscribe(event, callback) Like và share tên event như bên dưới: Mã: var page_like_or_unlike_callback = function(url, html_element) { console.log("page_like_or_unlike_callback");...
View ArticleTạo hộp chatbox hỗ trợ online cho fanpage Facebook
Bạn có thể chỉnh sửa tùy theo mục đích sử dụng: Mã nguồn HTML: <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if...
View ArticleCách lấy số lượng facebook like của fanpage
Facebook vừa bỏ fbsql query từ ver2.1 nên do đó ko thể sử dụng để lấy được facebook like nữa. Nếu bạn muốn lấy facebook like thì bắt buộc phải sử dụng facebook sdk hoặc sử dụng trick bên dưới đây: PHP:...
View Article
More Pages to Explore .....