How many of you realize that you have more than 1 place where your messages sit in your Facebook? Well, at least I didn’t realize it until recently. Although I sent out few messages to other people, not my friends, and there is an option if I want to pay Facebook small amount of money to make my message sits in the other person’s Inbox rather than “Other” mailbox.
(if you read actually Facebook read the other party gender too)
I don’t think there is a need to pay your message, however I think the purpose behind it is for brand page. It’s another way Facebook to monetize their social site.
So, when we choose “Just send this message to his/her Other folder”, where will it go? If you go to your Message, on your top left corner under “Facebook” logo there are 2 links, Inbox and Other. Click on that Other link.
You’ll be able to set your mailbox behaviour by clicking “Edit Preferences”
I leave it to “Basic Filtering” because I’m the point of contact for some groups so there are possibilities for other people who are not my friend to contact me. To make myself more reachable, Basic Filtering should do.
So, don’t forget to check your Other mailbox, who knows there are some opportunities knocking at your door! 🙂
Although it’s not operated in some countries (yet?) I can find Indonesia is one of the supported countries.
How to do it:
1. Type the mobile number in the box
2. If it’s not saved yet into your contacts, then the following screen will pop up asking you to save the contacts
3. Type the message like usual in the chat box
Please note that Google gives us 50 per day. Every time we send out, it will decrease by one. Every time we receive a reply, it will increase by one. By the end of the day it will be reseted to default max credit 50.
On my previous tutorial, I’m using the Facebook OAuth button to ask users permission. However, based on Facebook documentation that button combines the login process and authentication in the same time. Therefore the label of the button is “Log In”.
(*grumble: why they don’t create a passing parameter to let us change the button label? )
There is an alternative way to do this. Do it manually!
After a few test by following their documentation, here how do it (click to download).
Hi, this is my first time writing a tutorial, and it’s about how to create a Facebook app for a Facebook page. I know that there is an extensive resource about creating app and there are many ways of creating it.
However, there is hardly working example that I can learn from. You can say I’m a lazy programmer who wants to learn from a clear cut working example rather than exploring the library one by one. So, I decided to write this tutorial. I will do my best to make it as clear as possible and put all references for you to make it easier.
1. Facebook Developer Account.
Refer to Facebook documentation for information on activating your developer account.
3. Web hosting, to put all your file.
You can try to explore Heroku, it’s a cloud hosting Facebook partner. But in this tutorial, I will use my own hosting.
4. (optional) Facebook Page, if you want to tie your app into a page.
Basically there are 2 ways you can have your app runs in Facebook platform:
as Page tab, i.e. https://www.facebook.com/your_page/app_YourAppIdNumber
as Facebook app, i.e. http://apps.facebook.com/YourAppName
It depends on your needs. In this tutorial, I will enable both. A. Creating Facebook App
1. Go to Facebook Developer
2. Click on “Apps” on the top right corner near your id.
3. Locate “+ Create New App” below your photo.
4. Define your App Name and App Namespace
Fill these with: App Name = your_app_name, App Namespace = your_appname
Your App Namespace will reflect on your Facebook app address (http://apps.facebook.com/YourAppName)
I know the app name should be more representable, but just an example 🙂
5. After entering the captcha, you will be brought to a basic app setting page.
6. Scroll down and click on “App on Facebook” and “Page Tab” and fill in the details.
Fill in these for “App on Facebook”
Canvas URL = address/folder on your hosting site, i.e. http://www.kartika9.com/testing/yourappname/
Secure Canvas URL = secure address/folder on your hosting site, refers to the same folder but use HTTPS, i.e. https://www.kartika9.com/~kartikan/testing/yourappname/
Note: You will see that Facebook has assigned an app address using your defined App Namespace earlier. You also need to know how to enable the HTTPS for your web hosting.
Fill in these for “Page Tab”
Page Tab Name = yourappname
Page Tab URL = the landing page when they visited the address, i.e. http://www.kartika9.com/testing/yourappname/tab.php
Secure Page Tab URL = the secure address, i.e. https://www.kartika9.com/~kartikan/testing/yourappname/tab.php
(optional) Page Tab Width = you can select wide canvas (810px) or narrow canvas (520px) for your app. I leave it to default narrow canvas.
Note: To add your app into your page tab, you need to type this: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL . Your URL should refer to the same hosting address you mentioned in point no 2 and 3. Otherwise it will generate an error saying that the app doesn’t own the domain.
B. Building the app
The work flow that I want for my app are:
The users have to like my page.
The users have to authorize my app to access their data.
My app will display the basic user data, if those conditions met.
In more detailed flow, I can describe it as:
When users go to the app page, i.e. https://www.facebook.com/your_page/app_YourAppIdNumber, file tab.php will check if users have liked the page.
If users have not liked the page, it will lead to notab.html, which will ask the users to like the page. After the users liked the page, it will redirect user to the app page (first point).
If users have liked the page, it will check whether users has granted permission to access their data.
If users have not granted permission, it will display “Log In” button, which if they pressed it, the access permission will pop up. Otherwise, the data will be displayed on the form.
In simple, I can draw it into a work flow:
Therefore, I will need these file:
Facebook PHP SDK, refer to this link on how to obtain it.
Create 3 files:
Add 1 more file:
form.php: to post process the form input
Finally, to see the working example, you can go to my page. Note: you may need to add exception, since I don’t have a valid HTTPS setup
To download the complete file, you can get it from this link.
My homework is to find out how to work these issues out:
Share button works inside iFrame. I hope there is a work around otherwise I’ll need to wait for Facebook to fix this.
Assign correct value to Open Graph meta tag, so when Share button is clicked, it will display correct value.