C
C
Chvalov2016-10-20 04:06:25
Facebook
Chvalov, 2016-10-20 04:06:25

How to integrate VK and FB in Socialite Laravel?

The question is the same
stackoverflow.com/questions/35503374/how-to-integr... Socialite has
G+, FB from the box .

'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];

After this step, I can only work with VK, but I also connected socialiteproviders.github.io/providers/google+/, but FB is not in the providers, how to work with facebook, which is included by default in socialite?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zlatoslav Desyatnikov, 2016-10-20
@Chvalov

Work as described in the Socialite doc.
In services.php

'facebook' => [
    'client_id' => 'YOUR_CLIENT_ID',
    'client_secret' => 'YOUR_CLIENT_SECRET',
    'redirect' => 'YOUR_FACEBOOK_REDIRECT_URI',
],

In the controller:
About Facebook is described here in the blog. https://blog.damirmiladinov.com/laravel/laravel-5....
With SocialiteProviders connected , everything looks the same.
The following articles describe the connection of several social services.
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question