It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm looking at the windows 8 facebook c# sample code where a user can login to my app via facebook. No where do I see the mention of secret key inside the sample code. I thought the secret key was required for obtaining an access token?
You need app secret only if you are getting code from the client and exchanging it for a access token.
for web apps, it is recommended to use code and then exchange the it for access token which requires the app secret. This way when fb redirects back to your page you with ?code=... instead of #access_token=... it is guaranteed that the access token never reaches the client and saved in the browser history.
for windows apps (both store and desktop), you can directly get the response_type=access_token as it is guaranteed that it will not be saved in the browser history. and for security never include the app secret in the client app incase some users reverse engineers your app.
Related
This question already has answers here:
Check if Firebase registration token is invalid
(1 answer)
Firebase Cloud Messaging : Expiration of FCM token
(1 answer)
Closed 2 years ago.
weird question about Firebase ok the scenario
I login using firebase to get the token so i can do a good old push notification...then save that token in database (firestore, mongodb, oracle, mysql , etc..)
I trigger the event from express server.... then a leave the application close (mobile) for like 24 hour +- .... then when i tried it again without the mobile app open the notification did not work
The question is there is a way i can regenerate the token from the server side without even open the mobile app so it can give the new token?
Is there a way to get the OAuth token programmatically from the console? We can only manually get it (through the cookies once logged in), but each Soundcloud request on the website we are building requires a new token which cannot be generated automatically when we manually extract it. Anyone who can help?
*It looks like Soundcloud is not accepting app applications at the moment, so we already know about the solution from the answers in this thread
I have recently learnt about API and started using them for learning purpose.
I have tried the twitter API,but there is something I don't understand
Process of sending tweets with an API
Get your API token (need to tell a lot of informations and wait some time before it's validated)
Make http post request with the token to 'https://api.twitter.com/1.1/statuses/update
Tweet posted successfully
Process of sending tweets with your browser:
Create an account (don't need that much information, it's instant)
Login, write a tweet
When you click on submit, a http post request is sent (to the same url that above) and there is a Bearer token in the request header
Tweet posted successfully
So that leads to my question, why should I contact twitter to have an API token, if I can have one just by creating an account ?
How do twitter back-end know that the request is coming from a browser (normal use) or if it's coming from a third part app ?
The direct answer to your question is that the only approved way (inside of the Terms of Service) of sending Tweets programmatically is to use the official API.
There are a variety of ways in which websites and web services can detect browser automation or usage, and that's not really a question for a programming community like Stack Overflow.
What exactly are you trying to do, and why would you choose not to use the supported official API?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
How do I can create an API with laravel 5, That will be used for login /register for mobile app? Is there any useful tutorial for this type of API.
Like when someone sends a request from a mobile application, I need to authenticate and then send the proper response against that request.
I've made a very simple version in jQuery format as for example and hosted on GitHub.
Here are all the changes from a fresh Laravel: See all changed files
Feel free to adapt to your code.
You can check the step in each commit.
Create the project (Don't forget to run php artisan make:auth)
Make login support AJAX request (instead of auto redirect) 1a47de4
Login with AJAX (submit login data via AJAX, Please CSRF token header) 80be34d
Make register support AJAX (same as step 2) 89f6dd7
Register via AJAX (Same as step 3) ab8d2d7
Use redirect path from Laravel (Bonus) 27b9a1c4
By the way, for the mobile app, you may need to use access token instead. My example is for web app session. Laravel already have the particular method already just twist a bit.
If you need to create a login register with laravel you can simply use the Heto Multi auth.. All the required details are there..
Heto Multi Auth
Hope This will be helpful
There is a popular tool named - Dingo API which is specially created for Laravel / Lumen Frameworks and is meant to provide you, a set of tools to help you easily and quickly build your own APIs.
The package provide you with these set of features:
Content Negotaition
Authentication
API Versioning
Throttling
Formated / Transformed Responses
API Blueprint Documentation
and much more.
You can find the full documentation of Dingo API here >>
Creating a REST Api on Laravel isn’t very difficult. All we need to keep in mind is that where to start and how to prepare RestFull resources. As usual, you can follow this link: Build Rest Resources With Laravel
And if you want that your API works with Mobile Applications you should use tymon/jwt-auth package.
you can find the tutorial to work with laravel and tymon/jwt-auth in this link: Create an API Server for Mobile Apps using Laravel
The tymon/jwt-auth contains:
Installation of the package.
Configuration
Creating Tokens
Authentication
And the link for tymon/jwt-auth package is:
tymon/jwt-auth package
Here is a solution that shows how to set up register/login/logout endpoints but he changes it slighlty so we don't get the nice effects of too many login attempts etc. https://www.toptal.com/laravel/restful-laravel-api-tutorial
I am still looking for a tutorial on how to do this, will share when I find.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
i was looking for the right plugin to make register and both login users to my site,
but i've checked facebook connect plugin is no more supported... that's right?
which is the right fb plugin doc link to have registration and login by facebook on our sites?
sincerily i can't find the right link :/
i mean i've found login plugin and registration plugin but which is the one could gives me both fb registration and login actions to my site? some links?
thanks :)
Hey Memento I understand your issue. I was very confused by all of this also and couldn't determine the appropriate way to register the user via Facebook on my site. I suggest actually using the javascript SDK and create your own button based on the user's facebook connection status.
So basically, do the following:
Check if the user is registered via Facebook using FB.getLoginStatus function. If he is, log him into your site. If he's not, then display a button that says Login to Facebook. On click, the button should use the FB.Login function and get the user's permissions. After that, redirect the user to the Facebook Registration form and sign him up. Set the redirect URI of this plugin to the appropriate script in your site which will register him on your site as well.
Let me know if that helps.
This should do....
http://developers.facebook.com/docs/guides/web/