As mentioned in the first part, to use the cloud-c4c-extension-sample Application for creating marketing lead we need to use various Facebook tokens. The aim of this blog is to show how to generate those tokens. To limit the size of the blog it has been divided into two parts. This blog deals with creating the app and the follow up blog shows how to create the tokens required and real time subscriptions.
Note: This document is only limited to showcase how to create a basic Facebook app to be used with for this specific scenario and how to generate the required tokens. Development of productize Facebook App is beyond the scope. Additionally Facebook API can change over time and no guarantee the steps mentioned here will work as is. Please consult developers.facebook.com for further information and any issues you
might face.
To create a Facebook app you need to register as a developer with Facebook.
Give a Display name and use the category Apps for pages
Under Settings, add the platform as a website for this app
And provide a URL for the Website (There is a sample servlet shipped with the source code with context /FBMainApp/ which can be added here) under Site URL
Under the App Details add an app page where the campaigns will be created using Create New page button
For this demo I am using page type as Brand or Product and then follow the screen instructions to create the app page
After page is created add it to the app under the App page section
Next switch on the Website option under App Center Listed Platforms and click on Configure App Center Permissions
And request for information needed from Facebook (for our application only email is needed)
That’s all from app generation point now we will create the required tokens in the follow up blog.