Few months back someone sent me email asking me to write tutorial to get Facebook ID of any user using their profile URL. I don’t know why he wanted the script so bad, but he will surely be amazed how dead simple this is.
You may have came across some images about horoscope or stats about profile visitors on friends wall, aren’t they just fun to read? Well, why not create something fun like that? may be a Facebook ID card? Today let’s focus on creating some authentic looking “Facebook ID” for the users using PHP and PHP Facebook SDK.
I assume you are using Facebook PHP SDK in your project, if you need to check multiple permissions granted by the user using PHP, try following method. We will break string into an array, and then check for the permissions already granted by the user.
The Facebook, Twitter and Google plus data are available publicly in Json format, we can use some information to easily display number of likes, followers and circle counts in plain text. I wanted to include Feedburner Subscriber count code too, but too bad Google has decided to put an end to Awareness API, without it we can not display subscriber count in plain text.