Some of Web Cube features require a FaceBook App ID and App Secret in order to post content from Web Cube to FaceBook. In this tutorial we'll show you how to create a FaceBook App and generate an App ID and an App Secret.
1. Register as a developer
a) Click on the Register as a Developer green button found at the upper right of the screen.
b) Accept the terms and click on the Continue button.
c) Add a phone number to verify the account.
d) Follow the steps then click on the Done button.
2. Create the FaceBook App and generate a FaceBook App ID and App Secret
a) On the same FaceBook page click on the Create New App button.
b) Provide an App Name and click on the Continue button.
c) Copy the App Id and App secret.
d) If this app is used to enable the FaceBook user authentication on your web site select the Website with FaceBook Login option and provide your website's URL.
If your web site is using an Cloud Web Cube installation please contact our customer service to have our team setup the Facebook user authentication for you.
If your web site is using an Enterprise Web Cube installation you may activate the Facebook user authentication by editing the Social Auth settings on your settings.py file.
SOCIAL_AUTH_ENABLED_BACKENDS = ('google', 'facebook',)
SOCIAL_AUTH_ASSOCIATE_BY_MAIL = True
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/accounts/'
TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
FACEBOOK_APP_ID = 'Enter here your App ID provided by Facebook'
FACEBOOK_API_SECRET = 'Enter here your App Secret provided by Facebook'
FACEBOOK_EXTENDED_PERMISSIONS = ('email',)
LINKEDIN_CONSUMER_KEY = ''
LINKEDIN_CONSUMER_SECRET = ''
ORKUT_CONSUMER_KEY = ''
ORKUT_CONSUMER_SECRET = ''
GOOGLE_CONSUMER_KEY = ''
GOOGLE_CONSUMER_SECRET = ''
GOOGLE_OAUTH2_CLIENT_ID = ''
GOOGLE_OAUTH2_CLIENT_SECRET = ''
FOURSQUARE_CONSUMER_KEY = ''
FOURSQUARE_CONSUMER_SECRET = ''
GITHUB_APP_ID = ''
GITHUB_API_SECRET = ''
DROPBOX_APP_ID = ''
DROPBOX_API_SECRET = ''
For more information on social authentication go to Django Social Auth to read more.
e) If this app is used to create a FaceBook tab select the Page Tab option and follow the instructions to complete the form.
For more information on how to use FaceBook tabs with Web Cube click here.
f) Click on the Save Changes button.
For more information on how to control the appearance of your website's content shared by your users on FaceBook click here.