dongqiao9583 2015-09-22 08:44
浏览 30
已采纳

Facebook登录Laravel 5

I have registered my application with facebook, is using the Laravel socialite package.

I'm unable to find a solution regarding how I should set up Facebook in the services.php file.

services.php

'facebook' => [
    'client_id' => env('FB_APP_ID'),
    'client_secret' => env('FB_APP_SECRET'),
    'redirect' => env(''), //???
],

Before I proceed I want to know which keys and values I need to provide in the facebook array and where I can find them. The first two, I believe, are correct but I'm uncertain about any other.

Thanks for your help.

  • 写回答

2条回答 默认 最新

  • doubairan4213 2015-09-22 08:50
    关注

    You may find this article helpful, it details how to implement the Socialite package quite well.

    As for your setup, it all looks fine for the ID side of things, however the redirect should be set to the call-back URL you wish to use. E.g www.yoursite.com/account/facebook.

    You can then pick this up in your routes.php file and direct it to a controller function.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分