PHP Get Facebook URL Total Comments, Total Likes, Total Shares
Posted by
Hoan Huynh in
Facebook Graph API
|
Leave a comment
This article will use PHP & Facebook Graph API & FQL to query link_stat Facebook table to get total comments, comment count, total likes, like count, total shares, share count, total count, click count, comment box count of one or more URLs that users on Facebook are interacting with. Continue reading →
Tagged: Facebook, FQL, links.getStats, link_stat, restserver, sizeof
Get Facebook Total Comments, Total Likes, Total Shares Of A Given URL
Posted by
Hoan Huynh in
Facebook Graph API
|
4 Comments
This is a method uses to get Facebook information such as total comments, comment count, total likes, like count, total shares, share count, total count, click count, comment box count of one or more links (URLs) that are shared on Facebook or integrated with Facebook. Continue reading →
Tagged: Facebook, links.getStats, restserver
PHP Load Facebook Albums And Save To MySQL Database
Posted by
Hoan Huynh in
Facebook Graph API
|
2 Comments
This tutorial simply uses Facebook FQL to load all albums of logged in Facebook or albums of friend (via querystring parameter) and save them in MySQL Database to optimize page loading for next visiting as people don’t create new album very often. However, you may need to have a plan to refresh the list. Continue reading →
Tagged: FQL, mysql_num_rows, setSize
PHP Get Likes Number Of Facebook Page
Posted by
Hoan Huynh in
Facebook Graph API
|
5 Comments
There are several ways to get the number of users who like a particular Facebook page, we can use both Facebook API or FQL to get that number. However, I’ll supply a simplest way to do that, just a few lines of code, we don’t need to register for a new Facebook app or request allow permission or anything. Continue reading →
Tagged: Facebook, file_get_contents, JSON, json_decode, var_dump
PHP Change Facebook Profile Picture With Graph API
Posted by
Hoan Huynh in
Facebook Graph API
|
3 Comments
I’m working on a Facebook application that allows people be able to upload their photo through the app and then if they click on ‘Make Facebook Profile Picture’ button, their Facebook profile picture will be changed automatically. Continue reading →
Tagged: fileUpload, makeprofile, realpath
PHP Load And Save Facebook Friend List
Posted by
Hoan Huynh in
Facebook Graph API
|
1 Comment
This tutorial simply use Facebook Graph API to load all your friends in Facebook. And in order to avoid connecting to Facebook all the time, we will store all friend IDs to MySQL database since your friend may not change (add or remove) their friend list very often. In addition, using pagination (paging) is a good idea to optimize the response time and easier to navigate as people can have few thousands friends in their list. Continue reading →
Tagged: Facebook, mysql_query, setSize
Facebook Publish To Wall With External Link And Track Callback
Posted by
Hoan Huynh in
Facebook Graph API
|
4 Comments
A simple JavaScript example below will use the Facebook FB.ui function to display the Feed Dialog for users be able to post a link (with picture, caption and description) to their Wall. Continue reading →
Tagged: Facebook, Feed Dialog
Facebook Load User Profile Via Graph API And FQL Query
Posted by
Hoan Huynh in
Facebook Graph API
|
5 Comments
This post simple display How to read Facebook user profile information (Name, Email, Profile Picture, Locale, Timezone, Total Friends, etc) via PHP Graph API and FQL Query. Continue reading →
Tagged: Facebook, Facebook FQL, getLoginUrl