I have created a facebook app. I have my own access token and its working. My aim is to generate a app access token for the users who are going to use my app. User will provide their credentials and appId,appSecret and should get the access token.
My aim is that user should not have to go to developer site. He will just run the app.
Related
Im trying to integrate the DropBox into my java app but I didn't understood how can I create a general login (email and password each time someone click 'log in'). I used the token to access data from my account, but now I want get from anyone who logs in.
Your app can obtain an access token by redirecting the user to the appropriate URL (preferably within a web browser, otherwise something like a webview), where they will sign in with their dropbox credentials (username, password).After this, they will be redirected back to your app, and you can now get the access token (token secret) as part of the response.
You should then store this somewhere, and propbably keep using it, till the user asks you to log out of their Dropbox account, in which case you should then get rid of that access token (token secret).
You can refer to this page for the specifics on how to do it:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java
Another useful link:
https://www.dropbox.com/developers/reference/oauth-guide
NOTE: The 'access token' that you used so far was probably just an access token provided by Dropbox to your app for testing purposes only.To actually access the user's Dropbox, you would need to obtain an access token for each user, using the method described above.
I have created Facebook app to get the feeds and i am using java with restfb to get the access token. I have specify scope for user post 'user_posts'.
The problem is when i login with my account i am able to get feeds but when i login from my friend account and accept the app permission i am not getting feeds.
I debug them in in facebook debuge tool the user post_scope is not listed in my friend account token and its totally different from mine.
See following screen shots.
Access Token From My Account:
Access Token From My Friend Account
Can anyone tell me whats going wrong?
You can only request extended permissions for other users than admins/developers/testers of your app if the app passed the Login Review process. It's all in the docs:
https://developers.facebook.com/docs/facebook-login/review/what-is-login-review
https://developers.facebook.com/docs/facebook-login/best-practices#loginreview
I have a problem with Google Drive sync. I can insert, update, delete, get from a specific Drive account as long as I get the access token from the authorization page.
Does someone has a solution for that?
Read about "offline access" and "Refresh Tokens". By requesting offline access when the user authorizes your app, you'll receive a refresh token which you can use to obtain an access token at any time.
I am creating a login system for my android app. I want following to
happen:
1. User enters username/password.
2. Login button sends request to custom API in google app engine.
3. App engine performs a check in google cloud sql if the user entered correct credentials or not.
4. If user entered correct credentials then response comes as a valid access token and user logs in successfully.
I am no able to find a way to achieve above goal. I am new to APIs and login system. I need to know how to create an api that can read the request and do a check and return the result.
How to get user AccessToken of fb using REST API programatically in java using emailid and password for multiple user.I am making javaFX Desktop application to post a message in all the user wall. here any other api is available to get Access token at run time. I have also use Facebook4j api but not get any solution to getting User access Token not App Access Taken.
Here I see the code that is using access Token
FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN);
But it's not showing how to get User Access Token using desktop Application.
It is possible or not?
You have to implement the OAuth login flow to get an User Access Token. You can find an example app here: https://github.com/roundrop/facebook4j-oauth-example