Skip to Content

Creating a Marketing Lead in SAP Cloud for Customer from a Facebook promotion – Part II

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 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/wp-content/uploads/2015/05/setappplatform_707641.png

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/wp-content/uploads/2015/05/apppage_1_707637.png

For this demo I am using page type as Brand or Product and then follow the screen instructions to create the app page/wp-content/uploads/2015/05/apppage_2_707636.png

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)/wp-content/uploads/2015/05/appcenterpermission_2_707630.png

That’s all from app generation point now we will create the required tokens in the follow up blog.

You must be Logged on to comment or reply to a post.
  • Hello Abhinash,

    Thanks for sharing this information.

    I think now facebook changed some settings in the developer account.

    Now I am not able to add the page link to the apps.

    Meaning I am not able to see the below settings layout now.


    Now I can only see minimal control in the settings page.

    like below,


    So can you please how to proceed further?

    Thanks and Regards,


    • Hi Sriram,

      You need to check at facebook develoer forum. I would imagine facebook provides some API to bind the page to app.

      Best regrads, Abinash