Archive for the Facebook Category

Deprecated REST API Methods 2010

Posted by mahmud ahsan on August 29, 2010 in Facebook | No Comments

facebookEach year facebook changes many things, if you’re facebook developer from the earlier stage you’ll know it better than the new developers. Facebook’s biggest change was 3/4 months ago that is called graph api. Graph Api is really awesome to work with.

Beside Graph Api we still can use old REST api using the latest sdk from facebook. But facebook will deprecate some REST methods end of this year. So if you’re using any of them in your application its better to remove that.
Continue

How to develop facebook application for iphone

Posted by mahmud ahsan on August 20, 2010 in Facebook, iPhone | 8 Comments

iphoneSomeday ago Facebook updated their old SDK for iphone and release a new SDK named IOS Library. This open source iOS library allows you to integrate Facebook into your iOS application include iPhone, iPad and iPod touch. Now its really very easy to implement facebook features in your iOS applications.

Why we should implement Facebook in iOS application:

  1. According to techcrunch Facebook Mobile Hits 100 Million Users, Growing Faster Than On Desktops. So you  can think there are lots of users are now using facebook from iOS base devices.
  2. According to AppleInsider iPhone sales predicted to top 80 million by 2012
  3. So people are using iPhone/iPod/iPad more now a days. And the number is growing both for facebook and iOS.
  4. Why not consider to include facebook users  in your iOS application so that your application looks more social.

A typical scenario of facebook features in iOS application:

Suppose you develop a game for iOS. You’ve a online leaderboard system for that game. Now people can compare themselves in the game based on leaderboard. But there might be many fake profile in the leaderboard, because you’re not aware of who’s playing the game. Though facebook has many fake account, but normally a user has real friends in facebook. So you can bring facebook user’s real friends in your application, so that the user feel more proud when he will be in a higher rank among his facebook friends.

Continue

Add comments features in your fanpage

Posted by mahmud ahsan on July 31, 2010 in Facebook | 2 Comments

facebookSuppose you have some products to show your fanpage and you want to know what comments user made about those products. Then you can easily use facebook’s comments plugin to make this feature.

Checkout the comments demo

Its very easy to add comments. Using static fbml app and simple xfbml codes you can make this feature.

Continue

A Basic facebook fanpage template

Posted by mahmud ahsan on July 30, 2010 in Facebook | 7 Comments

facebookSometimes you may need to make a page tab for your facebook fan page. If you need fanpage tab, you can easily add static fbml application in your fan page and customize the page using some xfbml tags and basic html/css/js. Here I provided a basic fanpage template. You can customize and use this code for your fanpage easily.

Features:
1. Easy CSS and HTML
2. One simple javascript function to show the invite box
3. Share Button
4. Fan and non fan detection code.
5. You can show special information only for fan, so this inspires user to be fan of your page.

But please remember, you’ve to fully customize the code for your purpose. I’ve just provided some functional code that you can easily use for your purpose. And to check fan detection code, you must have to check as non-admin of the page.

Continue

Retrieve time period like facebook fashion

Posted by mahmud ahsan on July 14, 2010 in Facebook, PHP | 1 Comment

facebookIn facebook stream you’ll see the time period at the bottom of the stream. For example: 4 minutes ago, 2 days ago, 3 weeks ago…. In our recent project we have to show similar time fashion for our application’s activity stream. So I write a function to retrieve the time duration.

In our mysql database, we used a column named ‘created‘ as DATETIME in the table. I retrieve that created field as unix_timestamp. So the sql query looks like “SELECT UNIX_TIMESTAMP(created) as created from tableName

After getting the data I just pass the created value in my function. Here is the function:

Continue

How to retrieve facebook user’s friendlist

Posted by mahmud ahsan on July 13, 2010 in Facebook | 15 Comments

facebookSometimes you may need to retrieve user’s friend-list in facebook. You can retrieve user friends list in several ways. Using new graph api you can retrieve friend-list or you can call legacy api to retrieve friend-list.

Continue

How to get mutual friends in facebook

Posted by mahmud ahsan on July 13, 2010 in Facebook | 1 Comment

facebook Sometimes you may need to retrieve mutual friends between 2 facebook users. Then using this simple api call you can retrieve the mutual friends list. friends.getMutualFriends is a legacy api. But you can easily call this method using php-sdk legacy api calling system.

Continue

Increase facebook iframe app’s performance

Posted by mahmud ahsan on June 30, 2010 in FB Connect, Facebook | 6 Comments

facebook This tutorial is for advanced facebook app developer. If you’re beginner than first learn about developing facebook application. Normally if you see iframe base or fbconnect base facebook application development using php sdk you’ll notice some authentication code.

In the example they will run that authentication code each time before page load. But if you look carefully you’ll notice that, the authentication code of php will take extra time to load the iframe base application. Now I’m going to describe how we solved such problem.

Continue

Apply new data model and do specific change

Posted by mahmud ahsan on June 23, 2010 in Facebook | No Comments

facebook Facebook declared their new data model some months ago, and June 30 is the deadline for all apps to change. After then they will automatically update your application.

According to facebook new data model is:
“Providing greater control to users, this change also helps application developers. When you upgrade your application to the new data model, all requested permissions are presented in a single dialog rather than a sequence of separate dialogs.

I really like this feature and already updated my applications. I think you’ll also like it check the screenshot

Continue

Graph API & IFrame Base Facebook Application Development

Posted by mahmud ahsan on May 28, 2010 in FB Connect, Facebook | 204 Comments

facebookFacebook is one of the top social networking site and its easy to develop facebook application. You can also easily integrate facebook features via facebook connect into your site. But it may happen that you want to develop facebook application that will run within facebook site. If this is the case, then this is the right article for you to start.

In this article I discussed all the basics and techniques you need to develop iframe base facebook application.

You’ll learn from this article:

  1. Setup IFrame Application
  2. Facebook Authentication for Iframe Application
  3. Setting extended permission for more information
  4. How to set links
  5. Form Submission technique and getting Data
  6. JQuery – how to use javascript and javascript library
  7. Graph api using php
  8. Stream Publish (wall post)
  9. Status Update via php api
  10. Status Update via javascript api
  11. Invitation Feature
  12. Iframe Resizing

Before proceeding checkout the demo & Download Code

Demo: http://apps.facebook.com/thinkdiffdemo/
Download Code

Continue

Page 1 of 512345»