Post messages to Facebook automatically
You can post on your Facebook wall using Ozeki SMS Gateway! On this page you can learn step by step how to create a Facebook connection. Watch our tutorial video below!
Step 1 - Log in / Sign up
First navigate to https://developers.facebook.com/apps/ website. (Figure 1)
Then provide your account information and click on the 'Log In' button. (Figure 2)
Step 2 - Add new app
If you have not used 'Facebook for Developers' before, then you have to register your account by clicking on the 'Register Now' button. (Figure 3)
Now you have to accept the Facebook Platform an Privacy Policy in order to use this functionality. Click on the box that shows 'No'. (Figure 4)
Now you can see 'Yes' in the box. Click 'Next' to continue the configuration. (Figure 5)
As a next step provide your phone number where the confirmation code will be sent to. You can decide if you would like to receive it as an SMS message or via phone call. After receiving the code enter it into the 'Confirmation Code' field. If finished, click on 'Register'. (Figure 6)
And now you have become a Facebook Developer! The next thing to do is to create an app. Click on 'Create App ID' button. (Figure 7)
It is time to provide details about the app. Your e-mail address which you have used for creating your Facebook account is already provided. Add a name for the app and then click on 'Create App ID' button. (Figure 8)
Now comes the security check. Enter the text into the required field and click on 'Submit'. (Figure 9)
Step 3 - Set up your app
On the next page choose 'Facebook Login' product. In order to start setting up this app click on 'Get started'.
(Figure 10)
Provide the URL: http://localhost:9505 in the 'Valid OAuth redirect URIs' field and if finished, click on the 'Save Changes' button which is in the bottom right corner. (Figure 11)
Go to 'Dashboard' tab and click 'Show' therefore the 'App Secret' code will be displayed. (Figure 12)
But first you have to re-enter your password because of security reasons. Then click on 'Submit'. (Figure 13)
Go to 'Settings' menu where you can see the basic details of your app. Find 'Category' field, click on it and choose 'Communication' type. (Figure 14 and 15)
After that add a platform to the app. Click on 'Add Platform'. (Figure 16)
Now you can see many possibilities to choose from. In this case let's select 'Website'. (Figure 17)
Now we can see that a new tab called 'Website' has appeared. In the 'Site URL' field provide http://localhost:9505 then click on 'Save changes'. (Figure 18)
Navigate to 'App Review' menu where you can setup the availability of the app. Click on the box which shows 'No' at the moment. (Figure 19)
Make your app available by clicking on the 'Confirm' button. (Figure 20)
If you see a 'Yes' in the box then your app is live and available to the public. (Figure 21)
On the same page you can see 'Submit Items for Approval' tab. This setting is important because there are some Facebook apps which require approval before using them. This way you will be able to post messages using different apps. Click on 'Start a Submission'. (Figure 22)
Now tick 'publish_actions' login permission and then click on 'Add 1 Item' button. (Figure 23)
Step 4 - Create Facebook connection
Now let's start the software of Ozeki NG SMS Gateway! (Navigate to http://localhost:9505). Then on the left-hand side choose the 'Connect' function. (Figure 24)
On the next page click on 'Create new connection'. (Figure 25)
Here you can see different connection methods. Let's choose 'Social'. (Figure 26)
And there it is! The Facebook connection which we would like to create. Click on it and start setting up this connection. (Figure 27)
In the 'Authentication' groupbox you have to provide authentication parameters. You will need the 'App ID' and 'App Secret' of your configured app. (Figure 28)
Let's go back to facebook for developers. Go to 'Dashboard' menu and copy the required 'App ID' and 'App Secret'. (Figure 29)
After pasting the codes into the required fields click on 'Login'. (Figure 30)
In the corner of the website on the right you can see that a pop-up window has been blocked. Click on the icon and choose the 'Always allow...' option. Then click 'Done'. (Figure 31)
Now you can click on the link and the pop-up window will appear. (Figure 32)
You have to log in with your Facebook account. Click on the blue button if you would like to continue using this app with your profile. (Figure 33)
In this section you can decide who can see your posts on Facebook. If finished, click 'Ok'. (Figure 34)
As you can see you have successfully logged in with your account! (Figure 35)
Step 5 - Compose message
Select your created Facebook connection from the 'Connection' list. (Figure 36)
Next step is to create a test project. In order to do it, click on the 'Test' button. (Figure 37)
Finally, it is time to compose your message. There is a possibility to attach files like pictures or videos to your post. If you are finished with creating the message then you can click the 'Post' button. (Figure 38)
If everything went fine, then you should see a green tick on the bottom of the page which means that the connection is working and the message has been successfully posted on your Facebook wall. (Figure 39)
Now it is time to check your post on Facebook! You can see that it has appeared on your timeline! (Figure 40)
More information