mendeley plugin on wordpress Failed retrieving OAuth2 access token: - wordpress

I am trying to connect my mendeley to my wordpress account.
However, I keep getting this error:
Failed retrieving OAuth2 access token: {"message":"Credentials are required to access this resource."}
Any advice/help?

Related

googlesheets4 (R package) oauth token suddenly stopped working

I have started getting this error from today when I do any write operation on my googlesheets... while till a few days back everything was working fine.
> gs4_create()
✔ Creating new Sheet: petalless-spider.
Auto-refreshing stale OAuth token.
Error in `gargle::response_process()`:
! Client error: (403) PERMISSION_DENIED
• Client does not have sufficient permission. This can happen because the OAuth token does not have the
right scopes, the client doesn't have permission, or the API has not been enabled for the client
project.
• Request had insufficient authentication scopes.
Error details:
• reason: ACCESS_TOKEN_SCOPE_INSUFFICIENT
• domain: googleapis.com
• metadata.method: google.apps.sheets.v4.SpreadsheetsService.CreateSpreadsheet
• metadata.service: sheets.googleapis.com
Following is my gs4_oauth_app:
gs4_oauth_app()
<gargle_oauth_client>
name: planar-unity-23xxxxxxx3ae35c6
id: 26xxxxxxx50sk26li1edt07gscl.apps.googleusercontent.com
secret: <REDACTED>
type: installed
redirect_uris: http://localhost
the secrets matches with the downloaded json from google cloud console (screenshot attached):
The only changes I did in last few days is open a new google workspace account. However I am logged into the old gmail account and also confirm the account whenever being prompted by googlesheets4 package.

Facebook API v3.2 connection issue with Rfacebook package in RStudio

I'm connecting to Facebook API v3.2 in order to get my friends information. I had the following error:
Invalid Scopes: user_relationships, publish_actions. This message is only shown
to developers. Users of your app will ignore these permissions if present. Please
read the documentation for valid permissions at:
https://developers.facebook.com/docs/facebook-login/permissions
How to fix this issue using API v3.2?
I have proceeded to the following steps:
I connect to the Facebook API via App: I have created a new Facebook APP (from https://developers.facebook.com) and set it up by default.
I connected to the Facebook API v3.2 via authentication token (from https://developers.facebook.com/tools/explorer) and I obtained access token of all necessary permissions.
I used this R code in RStudio to connect to my API:
install.packages("devtools")
library(devtools)
# I used install_github to get the updated version of Rfacebook package
install_github("pablobarbera/Rfacebook", subdir="Rfacebook")
require (Rfacebook)
I used this fb_oauth to connect my R session with the App I already created and authenticate it to my Facebook profile for Data Mining.
fb_oauth <- fbOAuth(app_id="My_APP_ID", app_secret="MY_APP_SECRET_KEY", extended_permissions = TRUE)
I expect that the token will give access to some of the authenticated user's private information (birthday, hometown, location, relationships) and that of his/her friends, and permissions to post status updates as well as to access check-ins, likes, and the user's newsfeed.
But I got the following error on RStudio command line.
Copy and paste into Site URL on Facebook App Settings: http://localhost:1410/
When done, press any key to continue...
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Error in oauth2.0_access_token(endpoint, app, code = code, user_params = user_params, :
Bad Request (HTTP 400). Failed to get an access token.

HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee

I'm running into this error when trying to hit any of the Organizations Lookup API endpoints:
HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee
I also run into this error for the Organization Search API. Which is strange because my "Usage and Limits" console says that these requests were successful. I've tried emailing LMSdeveloperteam#linkedin.com about this error but have gotten no response back.
Here is the permissions my app currently has: permissions
And here is my "Usage and Limits" screen: requests console
There are a number of v2 endpoints that I am able to access successfully and we already have API access so I'm drawing a blank on what else to do other than continue to email LMSdeveloperteam#linkedin.com and post here.
Does anyone have any ideas? LinkedIn support could you look into this please?
can you verify that you have an ADMINISTRATOR account in atleast one organization ?
Depending on your application's permissions, some Organization API
requests may require the authenticated member have a specific
organization role type, such as ADMINISTRATOR. You may lookup access
control information either by member or organizational entity.
could you also try if you have another api call from organization to look if you have access to the organization api ?
https://api.linkedin.com/v2/organizations/{organization ID}

firebase/functions-samples.. /email-users, error: invalid login

I followed the steps at the GitHub repository but I do not get emails when creating a new account or deleting it etc.
I get the following error:
Invalid login
I checked if the password was correct with:
firebase functions:config:get
And it was, so I'm lost now.
See the following instructions for setting up Gmail SMTP for Nodemailer
https://nodemailer.com/usage/using-gmail/

RGA Invalid Credentials

I try to use the RGA Package (https://github.com/artemklevtsov/RGA) to get Data from Google Analytics core API.
authorize(
client.id=options()$apiSecrets$id,
client.secret=options()$apiSecrets$clientSecret,
cache=paste(getwd(),"daToken",sep="/")
)
So the cache is set to something like /User/foo/bar/daToken. I can see the file and everything works just right, I can access the data for now. After 30-60 minutes however the token expires it seems. Now on a new attempt there will be the error message Error : client error: (401) Unauthorized Auth error: Invalid Credentials
Why is the token not working any more? How to setup a longer live time? Plus: why is there an error and why does RGA don't try to get a new token?
Please read Google Oauth 2.0 documentation properly.
Access Token has lifetime of only 3600 seconds. After that you have to use Refresh Token to get new Access Token.
I have not used RGA package but I am sure there must be some mechanism to validate and refresh the Access Token.

Resources