duanke6057 2016-05-11 21:36
浏览 23
已采纳

如何获得也使用我的应用程序与Laravel社交网站的Facebook用户列表?

Like the title says, I have currently implemented a socialite login on my website but I don't know exactly how to get a list of user friends that also use my app when a user logs in.

The socialite documentation states the following code example to change the "scope". I've read somewhere else that you are suppose to use this?

return Socialite::driver('github')
        ->scopes(['scope1', 'scope2'])->redirect();

Nowhere does it state in the socialite github readme what scope means in this case though. Is this simply a social media api thing? Hopefully somebody can help me out.

It also states that setting up a scope with override all existing scopes, what are the default ones to begin with?

  • 写回答

1条回答 默认 最新

  • douzhuo3233 2016-05-12 10:42
    关注

    The snippet of code you've provided is indeed correct. By defining your scopes like that, the user get's an overview of the permissions you require. They see this when loggin in to your application via Facebook.

    To answer your main question: I don't think Facebook allows you to get a full list of people who use your app. (At least not with their names)

    If you just need a number, you should read the docs.

    I'm not entirely sure about this, so please correct me if I'm wrong.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料