#linkedIn
My client wants me to fetch all the feeds from his LinkedIn organization. I tried using their marketing developer platform and got the permissions. But when I tried to fetch the feeds using urn id and I got responses like
Request: https://api.linkedin.com/v2/ugcPosts/urn%3Ali%3AugcPost%3A1234
Response :
{
"message": "com.linkedin.content.common.ResponseException: ",
"status": 404
}
I am a little bit confused about this response. Can someone help me in sorting this out?
I think your {URN} is incorrect. the correct format is urn:li:organization:{id}
Related
LinkedIn Consumer Support asked me to add this question here for #LinkedIn developpers to answer this.
I have seen there are multiple questions about this 999 status code, but they are all API related. My question is not API related.
Here it is. On my website I have a link to my public LinkedIn profile: https://nl.linkedin.com/in/jpcornelissen/nl
The broken link checker plugin on my website tells me that this link is broken with the error: SERVER RESPONSE: HTTP/1.1 999 Request denied
Why is that? The page is accessible so it should return status code 200 not 999. Status 999 is not even an existing http status code.
The issue is not plugin related. You also get the 999 status code if you check with http://tools.seobook.com/server-header-checker/
Regards
Maybe you can find the answer here : 999 Error Code on HEAD request to LinkedIn or here : https://social.msdn.microsoft.com/Forums/vstudio/en-US/5a4f8eb5-bf1b-4776-b4bb-4baef621838f/999-non-standard-linked-in-error?forum=csharpgeneral
It seems that LinkedIn blocks "bad" request with this 999 non-standard Status Code (they should better respond with 400 Bad Request and an explanation). Some reports that it comes from the HEAD method (which is similar to GET but does not request the body), or a missing header( Accept-Encoding), or the User-Agent header, or the source IP (from Heroku).
Only LinkedIn can explain why. Chances are they will not explain why because of Security through obscurity.
Update,
It looks like this is a common occurrence and my investigation concluded when I realized the resource wasn't available for the main LinkedIn servers. Thus, when inspecting the profile badges page the script we need also has a status code of 999. I've opened a ticket, hopefully in the future they will provide a more stable means with full html+css options :)
I am new to wp-api.
I did install it and I am able to make some GET requests to retrieve content from my blog.
My question is very naive : can anyone send some DELETE/UPDATE rest requests to modify/delete my posts or must usre be authentificated first to do that ?
In other terms, can I use the wp-api as it is without any security considerations ?
If you are referring to WordPress REST Api version 2.7 above, you can't call PUT, PATCH, DELETE without being authenticated.
Here's more detail about the Authentication https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/
You may also try to use POSTMAN to issue a PUT call to your API end point. You will be getting the like the one pasted below if you did not login.
{
"code": "rest_cannot_edit",
"message": "Sorry, you are not allowed to edit this post.",
"data": {
"status": 401
}
}
I am facing an issue with the LinkedIn API /company-statistics.
Using the Apigee console, I launched https://api.linkedin.com/v1/companies/2414183/company-statistics?format=json and got an INTERNAL SERVICE ERROR 500.
As you can see from the URL, I was using the LinkedIn Test Company 2414183 as suggested in the developer API guide.
This error seems to be related to the "test" company with id "2414183".
I had the same issue but when i used the same command with my company ID, I received a well formed JSON in response with all statistics.
One of our apps that uses LinkedIn Login, and has been working fine for a long time, is now suddenly broken, as of yesterday. Most, but not all of our calls to the People endpoint return a 405 error. Did something change for that endpoint?
I'm making a GET, just as the documentation says, and I'm getting back "(405) Method Not Allowed." from LinkedIn. Here is the URL that I'm requesting:
https://api.linkedin.com/v1/people/~:(id,email-address,first-name,last-name,headline,industry,summary,specialties,associations,honors,skills,interests,educations,phone-numbers,main-address,picture-url,public-profile-url,following,positions,three-current-positions,location,site-standard-profile-request)
Any help or any links to recent LinkedIn API changes would be appreciated. I can't find any reference to any changes there in the last couple of days, but our app suddenly broke and we didn't change anything on our end. Anyone?
LinkedIn made some unannounced changes yesterday which has broken their oAuth endpoint. They still haven't mentioned it of course.
You can see a workaround here:
POST https://www.linkedin.com/uas/oauth2/accessToken HTTP/1.1 results in Method Not Found on LinkedIn
We have solved this fix adding the request header "Expect" empty like this:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:') );
I want to comment on post with graph api
but dont work graph api
https://graph.facebook.com/id/comments?access_token=&message= test
Sadly I don't know how to use the Facebook Graph API, or HTTP, but I googled for how to post comments, and found this in the API documentation:
Publishing
You can publish new comments to any object as below:
POST /v2.2/{object-id}/comments HTTP/1.1
Host: graph.facebook.com
message=This+is+a+test+comment
Permissions
A user access token with publish_actions permission can be used to publish new comments.
The same user must also be able to comment on the object.
The can_comment field on individual comment objects indicates whether it is possible to reply to that comment by
publishing another.
You might be able to use this, but change the message to whatever specifies your graph.
However, keep in mind that this might not work, because I have no experience with the Facebook Graph API. I found this in the documentation.