dpn4073 2015-10-31 00:36
浏览 45

如何使用Facebook身份验证进行休息api

I want to make an iOS app that need to communicate with a webservice/restful api to get data from a Mysql DB. Instead of implement my own user login module in my iOS app I want to use Facebook sdk/api. I'm using Laravel 5 to make my rest api (I'm new to laravel/php). So my question is how do I authorize the logged in facebook user?

I was thinking when a Facebook user login via my iOS app I save the required Facebook users data in a table called "users" with a post request from the iOS app. And let say a user has many images. So if I want to get all images for a certain user from my iOS app I will send the access-token to my webservice and from my webservice I'll find users id by using the access_token (making a post request to facebook api to get user details) and with the users id I can get the images that belongs to.

As said I'm new to all these technologies so if I'm wrong please correct me and help me further - Thank you

PS: I have read something called Social Authentication in laravel, but haven't digged deeper into it.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮