Change facebook.showFeedDialog to facebook.streamPublish

Posted by mahmud ahsan Filed Under Facebook, Facebook connect with No Comments

facebookFacebook announced in their road-map about some major changes in the late 2009. Some of those changes now activated in facebook.  One of these important changes is to deprecate feed publish and replace it with stream publish.

I support it and like it. Because stream publishing is much easier and simple than feed publishing. This is a technical issue. So if you didn’t already change your feed publishing method to stream publish method, then you should do the change right now. Otherwise the wall post publish box will not work in your facebook or facebook connect application at anytime.

Continue

Develop dynamic flash widget using PHP & ActionScript 3.0

Posted by mahmud ahsan Filed Under ActionScript, Facebook, PHP with 2 Comments

flash_php_fb
Basically I’m mainly php base web application developer. But I have  much interest in ActionScript project. Sometimes when I get opportunity I work on it. Someday ago, I was assigned in a project, where I’ve to develop a Flash Widget using ActionScript 3.0 and php. This widget will be use mainly for facebook page.

So shortly the project requirements are:

  1. Develop a dynamic flash widget using ActionScript 3.0
  2. Communication between ActionScript and PHP API
  3. This widget should be working on any facebook page

To develop this project I’ve learned a new library called amfphp. Using this library its much easier and practical to communicate between ActionScript and php. In this article, I’ll show how to use amfphp and develop a dynamic flash widget.

Continue

Must have wordpress cheat sheet

Posted by mahmud ahsan Filed Under Web Development, wordpress with 2 Comments

wordpress cheat sheet logoIf you’re a programmer and blog writer and like wordpress for your blog then you may need to modify some common functionality of your blog template. I’m not a professional wordpress template creator but sometimes I’ve to work to modify my blogs and some other blogs.

To modify existing wordpress template you have to know some common functions, rules of wordpress blog publishing application. And I found a cheat sheet that is very handy and helpful for this purpose. The cheat sheet is developed by Ekin Ertaç and you may also download the cheat sheet from here.

Encrypt MySQL data using AES techniques

Posted by mahmud ahsan Filed Under MySQL with 2 Comments

Sometimes clients want that the information they collected from the user should be encrypted and stored in database. Data encryption and decryption is a common technique for secured data. In this article I’ll show how could you use mysql’s built in function to encrypt and decrypt data.

Suppose you’ve a table where you want to encrypt user’s name & address. So look below the structure of the table. In this table we will store name and address as encrypted.

CREATE  TABLE `user` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT ,
`first_name` VARBINARY(100) NULL ,
`address` VARBINARY(200) NOT NULL ,
PRIMARY KEY (`id`)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci

You may be expected the table structure should be:

CREATE  TABLE `user` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT ,
`first_name` VARCHAR(50) NULL ,
`address` VARCHAR(100) NOT NULL ,
PRIMARY KEY (`id`)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci

Continue

Obfuscate your email in webpage

Posted by mahmud ahsan Filed Under PHP with No Comments

If you have blog or website where you placed your email address, you may notice that there might be many spam emails send to your email address. This is because spammer scour the web to harvest email addresses. So to prevent this problem you can use obfuscated email address. Here I am showing a simple hack to solve this problem.

<?php
     $link = 'mailto:' . 'awoman@gmail.com';
     $coded = "";
     for ($i=0; $i<strlen($link); $i++){
         $coded .= "&#" . ord($link[$i]) . ";";
     }
?>

<a href="<?=$coded?>">Email Awoman</a>

In browser normal user will show simple html link like: Email Awoman but if you see the view source you ‘ll see

<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#97;&#119;&#111;&#109;&#97;&#110;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">Email Awoman</a>

The code is very simple. Using email address, create a mailto link and then loop though the characters by replacing each character with ASCII equivalent.

Publish facebook page status or wall post automatically

Posted by mahmud ahsan Filed Under Facebook, PHP with 8 Comments

fb_logoFacebook page is now very popular. Many companies and people create facebook page for their own publicity. Suppose your company has 100 products and they want to maintain 100 facebook pages, then isn’t it very difficult to update status all of the pages manually?

In this article, I’ll show and discuss about 2 facebook api, using that you can easily update your facebook page status or publish wall post on that page automatically

I assume that you know how to set cron from hosting admin panel, I also assume that you have intermediate knowledge of facebook application development and their api usage.

fb_page

Continue

YouTube Search functionality in facebook app

Posted by mahmud ahsan Filed Under Facebook, Facebook connect, PHP with 1 Comment

fb_logoSomeday ago I had to add youtube video search functionality in a facebook app. Here I described how I added youtube search functionality in that facebook app using Zend_Gdata php library.

Here is a screenshot of that facebook application, where I added YouTube video search functionality.

search_youtube_video

Continue

Develop auto post publishing twitter app

Posted by mahmud ahsan Filed Under PHP, Twitter with 5 Comments

twitterTwitter is a free social networking and micro-blogging service that enables its users to send and read messages known as tweets. Though according to CEO of Twitter he says “We think of Twitter as it’s not a social network, it is an information network. It tells people what they care about as it is happening in the world.”  Though first people personally use twitter for their own purpose, but now twitter is very popular in business world. Many companies are using twitter to promote their business, inform people about their products, services.

In this article, I’ll show how you could develop a basic twitter application using php and twitter api, that will auto publish your predefined tweets. Continue

Retrieve your friends latest photos

Posted by mahmud ahsan Filed Under Facebook, Facebook connect with 5 Comments

fb_logoSuppose you want to develop a facebook application or facebook connect base application, where you want to show all the latest photos published by your friends in facebook. In this post I’m showing the solution.

Continue

facebook birthday api

Posted by mahmud ahsan Filed Under Facebook, Facebook connect with 1 Comment

fb_logoThere are many birthday related facebook application. Most of this type application provide feature like, they show you the upcoming birthdays of your friends. Some of the app also send notification to user before any birthday of his friends come.

Now I’ll show you the solution to get birthday of your friends using fql query or facebook api Continue

Page 2 of 11«12345»10...Last »