# mod\_facebook

Source: https://zotonic.com/docs/1912/mod_facebook

URI: https://zotonic.com/id/1912

Language: en



The mod\_facebook module plugs into the [authentication system](/id/doc_developerguide_access_control#guide-authentication) to enable [Facebook login](https://developers.facebook.com/docs/facebook-login/) on your site.

Configuration
-------------

[Activate](/id/doc_developerguide_modules#activating-modules) mod\_facebook, then head to ‘Auth’ > ‘External services’ in the admin interface to enter your Facebook app ID and secret. Enable Facebook login by checking the ‘Use Facebook authentication’ box. This will add a ‘Log in with Facebook’ button to the logon form on your site.

If you need extended permissions, add them to the ‘Scope’ textbox. Note that the module needs the ‘email’ permission for login to work.

Accepted Events
---------------

This module handles the following notifier callbacks:

- `observe_search_query`: Provide module-specific search query handlers with ACL-aware filtering.

Delegate callbacks:

- `event/2` with `postback` messages: `logon_redirect`.
- `event/2` with `submit` messages: `admin_facebook`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1912?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1912?language=en>)
