[Legacy Content] This page contains very old information, which might not be valid anymore, they are only kept here for legacy purposes.
if you have any inquiries, feel free to contact me! Click here

Posting to People's Timelines with Facebook Apps (Fb SDK)

Created: Thursday, 19 December 2013 Written by Ehab Eldeeb

Ever dreamed of making an app that posts to people's timelines on Facebook?

Posting on your timeline from external sources require permissions from Facebook (using OAuth)

Facebook SDK is a library that allows you to post stuff to any timeline that's subscribed to a Facebook App

You might think of making an app that posts on people's timelines for any purpose (example: magazine or blog posts)

After some time of researching and trying to get it to work, I present you a step-by-step guide on how to do this :-)

 

We will be using an arabic script called "HlounPost"

There are many equivalent systems, but I've only tested this one :)

 

Requirements

  • FileZilla FTP Client
  • Domain
  • Web Host
  • HlounPost Script

 

Let's proceed and setup the script

 

First Step: Download Required files

Get FileZilla FTP Client

http://www.filezilla-project.org

 

Get HlounPost from GitHub

https://github.com/hloun/HlounPost

Click "Download Zip" on the right corner as shown in the image below

 

Second Step (a): Register a Free domain

Register a FREE domain at dot.tk

www.dot.tk

Set DNS records to ns01.000webhost.com and ns02.000webhost.com

 

Second Step(b) : Uploading to a web-host

Get a free web-hosting service, I recommend 000webhost

Register an account at www.000webhost.com

Login your free hosting account control panel

Create a database (make sure save the database name and its user and pass in a text file, we will use this later)

 

Get FTP information

 

Login using FileZilla FTP Client

Unzip the file you got in the first step and upload it all to your hosting space using FileZilla

open the file "config.php" in the folder called "hloun"

change the HOST, DB_USERNAME, DB_PASSWORD, DB_NAME parameters to the corresponding ones you just created

Save the file and re-upload it.

 

Third Step: Installing the script

Assuming you have already linked your domain or sub-domain to the folder you just uploaded;

assume the domain is subscribe.example.com

open a new tab in your web browser and navigate to subscribe.example.com/install.php

Proceed with steps as shown in the video included in that page

after successfully installing the script YOU SHOULD DELETE THE install.php FILE!!

 

Fourth Step: Making people subscribe

Send the link to people to subscribe to your new Facebook app

 

Fifth Step: Publishing to people's timelines!

Navigate to subscribe.example.com/admincp

Login with the username and password that you entered during setup

Click on the link before the last one in the right menu, you will get a window as shown below

 

Write anything and click publish!

Congratulations, What you have just wrote will be published on every subscriber's timeline

Good luck :-)