duanke6057 2016-05-11 21:36
浏览 23


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.

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



    • ¥16 CATIA联合修剪怎么不让他变透明啊
    • ¥20 ERR_CACHE_MISS 确认重新提交表单
    • ¥20 关于vba使用HTMLfile执行js函数问题
    • ¥60 悬赏求解,通过实时现场摄像头的视频图像识别其他对家打出的麻将牌,识别麻将牌,识别牌墙位置,通过识别对家打出了什么牌
    • ¥15 关于#GPU jetson#的pcie驱动开发问题,如何解决?
    • ¥15 stm32f103zet6 串口5无法收发数据
    • ¥15 关于C语言使用线程队列实现多线程并发
    • ¥15 这个运行,错误在哪里呀,大家看看吧,教导我
    • ¥15 advanceinstaller对话框设置
    • ¥100 正常上网,内部网页无法打开