access-token

Instagram API Basic Display: Problem with requesting access_token

天大地大妈咪最大 提交于 2019-12-24 20:37:28
问题 I was following Instagram API Basic Display documentation. I've created Facebook App, configured Instagram Basic Display, added Test User, Authenticated the Test User using GET request: https://api.instagram.com/oauth/authorize ?app_id={app-id} &redirect_uri={redirect-uri} &scope=user_profile,user_media &response_type=code But when I try to request access_token using POST request from the documentation: I receive ERROR 400 with message "You must provide a client_id". However, documentation

Azure Active Directory - How to restrict Backend API App Registration to a specific client App Registration

北战南征 提交于 2019-12-24 15:09:06
问题 I could be completely off basis here on how this works, but this is what I'm looking to achieve. In AAD I have an App Registration called backend-api that represents an HTTP API an App Registration called frontend-app that represents some client (lets say a console app) an App Registration called another-app that represents nothing related to my solution I have a console application where I put my client ID and client secret in for frontend-app and I can request an access_token with the aud

how to get access token without any login?

前提是你 提交于 2019-12-24 10:07:39
问题 In my iPhone app I want to read news feed from public Facebook page but I don't want in the beginning that the user has log in facebook to see wall of page. I try to pass access_token (in url to graph api) but this access token expire. Thank you in advance Javier 回答1: You may use your application access token for this which may be one of: YOUR_APP_ID|YOUR_APP_SECRET Application Access Token received from https://graph.facebook.com/oauth/access_token? client_id=YOUR_APP_ID&client_secret=YOUR

LinkedIn API: How to refresh access tokens from a console application

这一生的挚爱 提交于 2019-12-24 09:28:19
问题 In LinkedIn API, the access tokens will be expired after 60 days, I want to refresh them in 60 days before they are expired in a console application. I viewed this document: https://developer.linkedin.com/blog/tips-and-tricks-refreshing-access-token, and I also viewed many posts in this forum, but it looks like the refresh flow is still now clear for me. Please note that: I need to refresh access tokens from a console application - it is not a website, it is a tool running in backend, it has

Calling /token endpoint does not give me an access_token

白昼怎懂夜的黑 提交于 2019-12-24 07:27:51
问题 Following the guide here: Web sign-in with OpenID Connect -> Get A Token. I'm trying to make a post request to access a token, HTTP POST: url: https://login.microsoftonline.com/[az-directory].onmicrosoft.com/oauth2/v2.0/token?p=B2C_1_SiUpIn Post Body: client_id: [client_id for Azure Function App] grant_type: authorization_code scope: https://[url-to-azure-app-api-endpoint] openid offline_access code: [code retrieved from login url] redirect_uri: http://[redirect-uri-used-in-login] client

Google api client->authenticate doesn't work

馋奶兔 提交于 2019-12-24 01:17:08
问题 I try to use google youtube api. Everything is OK. But with $_GET["code"] i cannot get access token. Relative code snippet : require ('XXX/vendor/autoload.php'); $client = new Google_Client(); $client->setApplicationName("XXX"); $client->setAuthConfig('XXX/client_secrets.json'); $client>addScope("https://www.googleapis.com/auth/youtube.readonly"); $redirect_uri = 'XXXX'; $client->setRedirectUri($redirect_uri); $auth_url = $client->createAuthUrl(); if (isset($_GET['code'])) { $test = $client-

Facebook API unsupported get request

断了今生、忘了曾经 提交于 2019-12-23 16:07:33
问题 I am posting Open Graph actions using the PHP SDK. Randomly about 1 in 20 of these actions turns up on the wall as normal but I am unable to access or delete it through the API. Trying to do so errors with "unsuported GET request" or "unsupported delete request". These actions are thus stuck forever on the timeline unless user removes them using Facebook. My guess is that it's an access token issue, but what cause and solution? UPDATE I found a bug in my code where an action was sometimes

Facebook Access Token storing in android app

青春壹個敷衍的年華 提交于 2019-12-23 15:34:54
问题 Since the offline access is stopped by facebook now, how do I store/get a new access token. I have tried a lot. The code is below. I have to give the access token in https://graph.facebook.com/me/friends?access_token= String url = "https://graph.facebook.com/oauth/access_token?client_id=appid&client_secret=secretid&grant_type=fb_exchange_token&fb_exchange_token=access_token"; HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(url); try{ HttpResponse response =

Removing permissions of the extensions

空扰寡人 提交于 2019-12-23 10:26:05
问题 I have an extension that first asks for permissions to access Google Drive files. The extension is almost empty except in the popup I load this js: chrome.identity.getAuthToken({ 'interactive': true }, function(token) { // Use the token. console.log('Request Token') console.log(token) chrome.identity.removeCachedAuthToken( { 'token': token }, function () {}) console.log('Removed token') }); In my manifest I have valid key, oauth2 client id, and "scopes":["https://www.googleapis.com/auth/drive

How Can I increase the expiry time of Spotify token?

北慕城南 提交于 2019-12-23 08:53:51
问题 Please advice how can I increase token expiry time While fetching data using spotify web API "https://accounts.spotify.com/api/token" 回答1: Access tokens expire after one hour. This expiry time is set on Spotify's side and can't be changed by the client. You can refresh an access token if you're retrieving it using the Authorization Code flow. (The refresh token is practically valid forever, or until it has been manually revoked.) 回答2: As stated by Michael Thelin, the token's expiration time