Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 780 Bytes

3-another-resources.md

File metadata and controls

23 lines (17 loc) · 780 Bytes

Additional Resources

Avoiding redirect to Facebook login page

When you're using only Facebook as your firewall and a user goes to a protected page on your application without being logged in, they will be redirected to the Facebook login page. If you want to avoid this behavior and redirect the user to another page, you can set this option on the security.yml, as the example above:

firewalls:
	public:
		...
		fos_facebook:
			...
			redirect_to_facebook_login: false

When you set this option, any request not authenticated will be redirected to the default login page.

Next: Example Server-Side Facebook Login using Mobile Apps