Ask Your Question
2

Adding Facebook login provider

asked 2012-09-21 12:06:32 -0600

wesley gravatar image

updated 2012-09-21 23:05:04 -0600

todofixthis gravatar image

I see there are options to login/register using twitter, linkedin, google..... is there a facebook option?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-09-21 18:24:41 -0600

Edur gravatar image

Sure, go to your Askbot page, login with your Admin Account, go into the 'settings' => 'login providers (Login, Users & Communication)' and check "Activate Facebook login".

Don't forget the Facebook public&secret keys (in the settings, 'external services')

Facebook API key and Facebook secret allow to use Facebook Connect login method at your site. Please obtain these keys at facebook create app site

edit flag offensive delete link more
0

answered 2013-02-01 11:12:20 -0600

coldsystem gravatar image

i have no facebook /twitter icons in my register page. how to activate it . from settings, even after activating this option, still not work :

#CSRF_COOKIE_DOMAIN = DOMAIN_NAME

STATIC_ROOT = os.path.join(PROJECT_ROOT, "static")
STATICFILES_DIRS = (
    ('default/media', os.path.join(ASKBOT_ROOT, 'media')),
)

RECAPTCHA_USE_SSL = True

#HAYSTACK_SETTINGS
ENABLE_HAYSTACK_SEARCH = False
HAYSTACK_SITECONF = 'askbot.search.haystack'
#more information
#http://django-haystack.readthedocs.org/en/v1.2.7/settings.html
HAYSTACK_SEARCH_ENGINE = 'simple'

TINYMCE_COMPRESSOR = True
TINYMCE_SPELLCHECKER = False
TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, 'default/media/js/tinymce/')
TINYMCE_URL = STATIC_URL + 'default/media/js/tinymce/'
TINYMCE_DEFAULT_CONFIG = {
    'plugins': 'askbot_imageuploader,askbot_attachment',
    'convert_urls': False,
    'theme': 'advanced',
    'content_css': STATIC_URL + 'default/media/style/tinymce/content.css',
    'force_br_newlines': True,
    'force_p_newlines': False,
    'forced_root_block': '',
    'mode' : 'textareas',
    'oninit': "function(){ tinyMCE.activeEditor.setContent(askbot['data']['editorContent'] || ''); }",
    'plugins': 'askbot_imageuploader,askbot_attachment',
    'theme_advanced_toolbar_location' : 'top',
    'theme_advanced_toolbar_align': 'left',

How to fix this from setting.py ?

edit flag offensive delete link more

Comments

@coldsystem you do not need to change anything on your setting.py. Once you add the facebook keys in your settings page, the FB logo will appear automatically ;)

oscarfh gravatar imageoscarfh ( 2013-02-01 13:11:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-21 12:06:32 -0600

Seen: 1,625 times

Last updated: Feb 01 '13