I am trying to use linkedin API for sharing my web site post on linkedIn.
While making an rest api call to linkedin, I am gettting below error:
{
"errorCode": 0,
"message": "Invalid arguments: {S_400_BAD_REQUEST=Bad request}",
"status": 400,
}
I am getting invalid arguments error. However, I am passing all the required arguments as described in LinkedIn documentation.
Please help if anyone faced and resolved above error.
Thanks!!
I ditched the rest api and used the js api, it was much easier. I coded almost exactly what you are trying to code, so it could help you greatly. You can find it here: https://github.com/kaburkett/LinkedIn-Advanced-Share
To share on LinkedIn, all you need is:
https://www.linkedin.com/sharing/share-offsite/?url={url}
Source: Microsoft LinkedIn Share URL Documentation.
For example, this works for me:
https://www.linkedin.com/sharing/share-offsite/?url=http://www.wikipedia.org/
Works fine:
Just make your own button, stylize it, and hyperlink it. No need for a plugin or SDK or jslib bundle or whatever.
If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check it out! Social Share URLs
Related
I am having trouble with an integration with FullCalendar on our websites. I am currently using version 2.4 (I know it's old, but it was new when I integrated it). All of our requests (all to public calendars) are being blocked with a 401 (Authorization, Invalid Credentials) error.
So, I downloaded the latest package from the website and loaded the "google-calendar.html" from the examples folder (which appears to use the public "Holidays" calendar), and it is having the same problem.
In addition, the demo on the website appears to suffer from the same error. You can see it here: https://fullcalendar.io/docs/google-calendar-demo
It appears that maybe something about the Goolge Calendar API changed, and has broken the functionality, but I wanted to see if it might be something I am doing wrong.
Thank you for the help,
Josh
After much research, this appears to be an error with Google Calendar API, and public calendars being able to be accessed by API key's.
Here is the main thread on it: Google Calendar API - no longer authorized for reads?
Here is the main bug report at Google: https://issuetracker.google.com/issues/160190541
It seems like it is a true bug, and is being fixed by Google.
I am trying to find the answer of something stupid, but I can't. Does anybody know how to remove the "w_member_social" permission from linkedin App (if there is a way to do something like that)? I need this because the client does not want to see the message "- Post, comment and like posts on your behalf" when authorizing linkedin accounts on our application.
Any other suggestion on how to solve that is welcome.
Thanks in advance!
Quick Fix:
Search for w_member_social string in your backend code if you find it in the configurations just remove it.
Explanation:
You can't remove w_member_social permission directly from the LinkedIn app, but it can be modified by making changes in the backend code of your application.
You need to follow certain general steps irrespective of the backend you are using:
Find out the library you are using for social authentication/OAuth2 service
Check library documentation for Application scopes W.R.T LinkedIn
go to backend configurations/settings file remove the option w_member_social from your configuration.
My Case:
My application backend was created using the Django framework and for social authentication, we were using python-social-auth library. I just navigated to my setting file and commented out w_member_social scope/permission.
SOCIAL_AUTH_LINKEDIN_OAUTH2_SCOPE = [
"r_basicprofile",
"r_emailaddress",
# "w_member_social",
]
we look after some websites built by other people and have had issues with the map not working because the associated billing account is invalid, but we have no idea what account or project name it relates to! Is there a way to look up the API key and get back to the account? Thanks.
Right click on the screen and navigate to inspect element. You will get the code written, find out the api key written in the code. Go to your google api console find out the project which is attached to your api key.
Hope it Helps!
Thanks!
Some users stuck on loading when they use Google sign-in in recent day.
This issue seems to depend on the account because I use the same device and tried to use different accounts to sign-in, this issue only happened on a part of accounts.
Below is my setting:
implementation "com.google.android.gms:play-services-auth:17.0.0"
Below is my setting:
implementation "com.google.android.gms:play-services-auth:17.0.0"
I tried to downgrade play-services-auth version, but it still not working.
Do you request additional scopes like "/auth/youtube" or google drive?
I believe it tries to show you this warning https://support.google.com/cloud/answer/7454865?hl=en, so maybe you need to verify your app.
Google says it is their bug and have corresponding issue filed in github
https://github.com/googlesamples/google-services/issues/413
You need to pass the verification process for the youtube scope anyway.
This issue is from google's side but for now, remove the consent screen from the test state and publish it. And It will work
The tutorial doesn't say how to activate the Javascript API v3 service. It just says do it. My Google Developers Console screen doesn't match the screen they show in the written (probably out of date) tutorial.
There is no "Service" category for me to choose. I have a "Terms of service" category which, when chosen, allows me to read the terms for this particular API but there is no action to be taken in that window. I have an API key and I have entered the code in my web page and placed my API key in it.
I get the following error message when loading the web page: "This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError" and I think it may be because I have not been able to "activate" API v3 for this project.
I have tried the following:
Regenerating a key and using it immediately so I know it isn't that the key is over 24 hours old
Double checked my referrals
Accurately entered the name of the site where I am trying to make this work.
You need to activate API from the Developer Console
click the 4^ and then click the "Enable API" blue button
I wasted my time just because of confusion so i am answering here with updated screenshots to help in a better way.