Category Archives: Facebook Graph API



PHP Get Facebook URL Total Comments, Total Likes, Total Shares Posted by 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

Get Facebook Total Comments, Total Likes, Total Shares Of A Given URL Posted by 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

PHP Load Facebook Albums And Save To MySQL Database Posted by 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

PHP Get Likes Number Of Facebook Page Posted by 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

PHP Change Facebook Profile Picture With Graph API Posted by 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

PHP Load And Save Facebook Friend List Posted by 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

Load And Save Facebook Profile Picture Of User Posted by in Facebook Graph API | 2 Comments

There is an easy way to display Facebook Profile Picture if you already know their Facebook ID or Username. By using Facebook Graph API, you can get your own/anyone profile picture in 2 type of sizes: default(small) and large. Continue reading

How To Add New Administrators To Facebook App Posted by in Facebook Graph API | 2 Comments

In order to grant admin access to a Facebook Application for a particular Facebook account, you need to ensure that account is a verified Facebook developer by verifying their cell phone or adding a credit card to their account. Continue reading

Facebook Publish To Wall With External Link And Track Callback Posted by 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

Facebook Load User Profile Via Graph API And FQL Query Posted by 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