laravel-and-music-and-more's People
laravel-and-music-and-more's Issues
0003: FB Authorization. More LaravelAPI-friendly code
I found it useful to make some review of your code as I see some aspects that would be critical when working.
- Could you make your app id and client server as some const variables outside the index method so that we soon can easily move them into
app/config/app.php
- I would strongly recommend you use
Session
facade to work with session data instead of using native php method. That thing is critical because pure-phpsession_destroy()
would delete some crucial extra data (e.g. "_token" in forms) stored by the Laravel framework. - Could you please explain in simple words how the process goes in facebook? As I see, when user not logged follows the link, he sees request for access to his personal data. After that the browser is redirected and here the request should be caught by the controller and the access token should be extracted from the response. I'm wondering: does the facebook use this token to access the API method, or he needs some additional temporary token that is retrieved from the first token and that is used to make calls to api and that expires in some period of time?
- Could you please return results of
View::make()
as the result in the end of the method?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.