![]() * The attributes that should be hidden for serialization. ![]() 'facebook_id', // Add 'facebook_id' to the fillable array. Add the Facebook OAuth credentials you obtained in the previous step: ![]() In your Laravel application, open the config/services.php file. Step 6: Add Facebook App Credentials to the Config Setting the OAuth Redirect URI in the Facebook/Meta Admin Add your Redirect URI, which should look like.And click ConfigureĬonfiguring the “Product” Facebook Login in the Facebook/Meta Admin Scroll down to the “Site URL” field and enter your domain once againĪdding the Site URL to the Facebook/Meta Admin.Also, enter your app domain (the URL generated by ngrok or any other HTTPS-based URI your app supports) Also, enter your app domain (the URL generated by ngrok or any other HTTPS-based URI your app supports) Meta for Developers Showing Form for App SettingsĬopy both the App ID and secret for later use. In the Facebook App dashboard, navigate to “Settings” and then “Basic”.Ĭopy both the App ID and secret for later use.Click on “Create App” and follow the prompts to create a new Facebook App.įilling in the Details of the App Setting the App to “Allow people to log in…”.Log in with the account that you wish to create your Facebook App with.Go to the Facebook for Developers portal.To add a Facebook login to your Laravel site, you’ll need to create an OAuth application in the Facebook for Developers portal. Tip: Test the URL in your web browser to ensure that your login form at looks the same way as it does on If everything appears as expected, you can proceed to the next step. Protected $proxies = '*' // changed from default '' Use Illuminate\Http\Middleware\TrustProxies as Middleware
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |