Archive for the ‘Facebook’ Category.

Read your Latest Status Message on Facebook using PHP

This morning I got interesting e-mail. He want to grab his latest status message on his Facebook account using PHP. How to do that? It’s simple, I just doing some web scraping to Facebook Mobile interface and get the status message from there. Here is the code. As usual, I am using curl to do this task. Continue reading ‘Read your Latest Status Message on Facebook using PHP’ »

Simulate Login to Facebook with PHP and curl

In my previous article, I already demonstrate how to simulate login to Facebook through their mobile interface. But now, after request from my readers, I want to show you how to simulate login to Facebook through their web interface using PHP and curl. I read some codes from the internet but mostly failed when I tried it, perhaps because of the script not fully simulate a web browser to do a login to Facebook. Continue reading ‘Simulate Login to Facebook with PHP and curl’ »

Updating Facebook Status from PHP

Here is the simple example about how to update Facebook status from PHP. We use different approach, just do web scraping to login to Facebook mobile and change the status. It’s simple and fun. Today (July 25, 2010) I update the code again because the previous code is not working anymore due the changes of Facebook mobile interface.

I also put the code on GitHub here http://github.com/sonyarianto/PostStatus2FacebookPHP. Please grab and play with it. Continue reading ‘Updating Facebook Status from PHP’ »