This is the documentation page for Madhouse Facebook, a plugin for Osclass that give to users the possibility to login with Facebook.
You probably got your plugin on the market, therefore, just click install and you’re done.
In the case you have the plugin packaged as a zip, just follow our tutorial on how to install manually a plugin on Osclass.
2- App settings
You can freely obtain an App Id and App Secret (needed to use Facebook login on your website) after signing up on this URL: https://developers.facebook.com/quickstarts/?platform=web
To help you we have write a small tutorial on how to create a Facebook App for Osclass.
3- Integrate with your theme
In order to use Facebook login in your website you need to include at least one facebook button for login. To do that place one line of the following code where you want it to:
osc_run_hook('mdh_facebook_button_login'); // Facebook login button osc_run_hook('mdh_facebook_button_register'); // Facebook register button
Pages where you can add this code:
3- Publish listings to user’s feed
With Madhouse Facebook users can publish an item on their Feed.
To be compliant with Facebook Apps Policy we add a checkbox to warn users that their item will be publish on their Facebook feed. To display this checkbox you need to enable Madhouse Facebook plugin for which categories you want to let people the ability to post item on their feed.
Publish a listing to a feed is only availabile on item post. You also need to deactivate moderation of items.
Also it required that you submit the item ‘publish_actions’ to approval in the section ‘App Review’ of your Facebook App. You will need to provide an account to Facebook to be able to test this functionality.
4- Profile picture synchronisation with Madhouse Avatar
If a user logged in with Facebook the plugin will send his profile picture to Madhouse Avatar. So on the user will have his profile picture synchronized. With Madhouse Facebook and Madhouse Avatar you can synchronize user’s Facebook profile pictures.
It also works if the user updates his profile picture on Facebook and log in later in your Osclass website.
You need to have Madhouse Avatar on your Osclass to activate this feature.
Buy Madhouse Avatar
You can completely customize the upload form that shows at registration and in the edit of a user profile: here’s a tutorial about how you can customize it within your own theme.
Templates you can edit :
1.50 / February. 2016 First public release. Heavy refactoring and support for Facebook Graph API 2.3+ [+] Synchronize email address between Facebook and Osclass: If a user change its email address in Facebook, Osclass update its. [+] Logout users if app is not allowed to access his account anymore. [+] Logout users if users deleted his account (invalidate cookie). [+] Add composer + bower to manage dependencies. [*] Update SDK to 4.0.0 + support for Facebook Graph API 2.3+ [*] Update firstname / lastname in Madhouse User Attributes. [*] Update settings management + styling. [*] Reorganize files (assets/, views/, etc). [!] Fix for redirection loop when users doesn't give access to his email address in privacy settings. [-] Publish to timeline removed since Facebook doesn't allow application to automatically post to timeline anymore.