To create an application, you need to register on Facebook, go to the http://developers.facebook.com page and follow these steps:
If everything is correct, you will see a confirmation message for the registration.
Now, elected to developers, you can create an application that will allow users to log in. To perform this:
To complete the operation, you need to:
At this point, you need to copy the Application ID and the APP secret in your Wi5stars. From the “Admin” tab“, click “ External Authentications”, expand Social Networks and enter the details in the “Facebook ID” and “Facebook secret” fields.
Starting from March 2018, all new created Apps have the “Apply HTTPS” setting within the Facebook login/settings menu, enabled by default and cannot be disabled. In order to use the login via Facebook you must install a valid certificate inside Wi5stars and set in the field “Redirect Uri valid oAuth” the domain in HTTPS. For old Apps, the “Apply HTTPS” setting, must be activated within March 2019.
Since version 5.0.180 you can no longer get gender, year of birth and the user’s city by Facebook. The choice has been forced by Facebook to introduce more restrictive policies on using the App and consequent to approval procedures much more complex. The restrictions take effect from 1 August 2018.
At the end of registration or at user login, you can invite to click “Like” to a page. To do this you have to create a page and get his ID to insert in the domain or HGW configuration.
To create a page, you must have a Facebook account, go to https://www.facebook.com/pages/create.php page and follow the procedure.
The page ID is determinable in the URL of the page you created. In practice if the URL of the new page is https://www.facebook.com/pages/NameNewPage/1234567890, the page ID is 1234567890.
Warning! Since November 5th, 2014 Facebook has changed its policy to protect its users from unwanted “Like” and therefore it is no more possible to force the user to click the “I Like”. This is Facebook’s announcement: “You must not incentivize people to use social plugins or to like a Page. This includes offering rewards, or gating apps or app content based on whether or not a person has liked a Page. It remains acceptable to incentivize people to log in to your app, check-in at a place or enter a promotion on your app’s Page. To ensure quality connections and help businesses reach the people who matter to them, we want people to like Pages because they want to connect and hear from the business, not because of artificial incentives. We believe this update will benefit people and advertisers alike”.