I'm trying to get details of a user from his/her LinkedIn profile using JavaScript API. but the problem is i only getting the details such as firstName, lastName, headline and profile picture. other than that i'm not able to get anything.
I have followed the tutorial in Linkedin Developer and i want to add fields like industry, network, date-of-birth, main-address,
They are right here: https://developer.linkedin.com/documents/profile-fields
But the point is accessing those fields for another account (not yours or your API key) might be not possible due to policies.
Update for comment:
I assume you are following the guide in the link you provided first and you are already getting the results you want (name, picture etc...). For the other fileds just provide the field name in the link I pasted above and see what happens. for example change the field line to:
IN.API.Profile("me") .fields(["industry", "network", "date-of-birth"])
That is use the field names in that link and do wathever you want with the returned data.
Related
I am building a website using backend language as PHP.I am using MySql as database.So in my site we have usual registration system where any user can register him/her self.And then we ask to him to complete his/her profile on his/her profile page.
Okk so on profile page there are so many details about the user(like Date of birth,About his/her self, About his/her education, About his/her gender,Ethnicity,...etc) that we ask to fill.
One important attribute of the user profile is his/her profile picture.So user can upload his/her profile picture on his/her profile page.
But we want to give user 3 options :
1.He/she can upload picture from own computer/phone
2.He/she can upload picture from own facebook profile
3.He/she can upload picture from own instagram profile
I have implemented the 1st option sucessfully and it is working correctly.But i have no idea about how to implement other 2 choices?
I have googled quite about this but i could not able to understand how this can be done i a easy approaching way?
I am not so proficient in PHP , so please help someone.
Thanks in advance.
So this is a multi part question with a number of factors, unfortunately I won't be able to give you a sample code you can copy and paste but I can hopefully point you in the direction where based on your configuration you know how to proceed.
The first thing you need to ask yourself is if you want to connect over OAuth so all the user has to do is login to facebook and you can get the content of information you'd like or get the FacebookID from the user (or an automated process if they provide the profile URL) and link directly to the image. You can using the Graph API to get to a users picture using the FacebookID like you can see below.
http://graph.facebook.com/" + facebookId + "/picture?type=square
For instance:
http://graph.facebook.com/67563683055/picture?type=square
There are also more sizes besides "square". See the docs.
You need to use OAuth you get the FacebookID of the person unless they provide you the id or url to their page.
As per my understanding you can use the graph API
Graph API
Replace userid_here with id of the user you want to get the photo of.
You can use the PHP's file_get_contents function to read that URL and process the retrieved data
I am wondering if it is possible to make a call to the LinkedIn API using PHP that will allow me to GET the users uploaded CV.
Currently I'm working on some basic API calls that have enabled me to gather information relating to the users contact details, personal details, experience and all of the other fields in their profile. I just cannot seem to find anything within the Developers Docs that talk about retrieving the likes of a CV if it has been uploaded to their account.
https://developer.linkedin.com/documents/profile-fields
I'm wondering if any one has any experience doing something similar? Or if it is even feasible! Of course one possible solution would be to utilize the information I can retrieve from LinkedIn to construct a CV but Ideally I'd prefer to retrieve the document.
My hopes is to create an "Apply Now" button that would pre-populate the application form with user information from LinkedIn. When they click "Apply" It is then emailed to my company HR dept.
An overview of my Basic Attempt at utilizing the API: *having trouble copying my code into the editor here. Will attempt to do so later. For now here is my steps.
Attempt to authenticate my application as follows:
Apply Now
Redirect User to Redirect URL and request an Access Token which I then use to make my API Calls.
I just cant figure out how I might get their CV in whatever format it was uploaded to their LinkedIn Profile.
Users dont upload CV to linkedIn. They fill in their profile. What you should be doing, is, after you get the access token, get the user's profile, and fill in your form with relevant fields.
This can be helpful: https://developer.linkedin.com/documents/profile-fields#fullprofile
You would need r_fullprofile permission.
If you dont need the full profile of the user, see this. https://developer.linkedin.com/documents/profile-fields#profile
How do I get user info like profile picture, location, description etc.
I have a field in form called google+ url. Now If any user filled it with their google+ url, I want to get their profile picture, location and description using their google+ url, Is it possible without creating google+ application?
A Google+ URL generally contains the Google+ ID for a user. You can parse out that ID, and then make a people.get API call using the ID. The response will only contain information that is publicly available on the user's profile, though. Also, if a user is verified, their URL will not contain their ID, but rather their verified name, but this will also work as an ID.
In PHP, the call looks like: $me = $plus->people->get('{{ID}}');
You can learn more about the people.get API call and see a full example at https://developers.google.com/+/api/latest/people/get.
I am trying to fetch the facebook friends details such as name, photo,current working and joined date. Am using PHP. I am tried to use the codes which are given in facebook-developer site.Url of that site is as followes.
http://developers.facebook.com/docs/reference/fql/
And i have completed the login code now i wants to display the friends details in my site as it is in the following url...
http://www.jobisjob.com/MyNetwork
In that please follow the facebook login link...
Can any one tell me how to do that using php?.
Make sure you request the proper permissions for this (look at the friends permissions column) - https://developers.facebook.com/docs/authentication/permissions/. Of course, getting this data depends on their privacy settings as well, so you should be able to handle both situations when this data is provided and when not.
Can you post a photo to the wall of a friend of the logged-in user using the FB Graph API? I could find no posts that answered this exact question but if there are please point me in the right direction.
I have tried the code found in answers to this question to post a photo, but no matter what user id is used in the call to api, the photo gets added to an album on the logged-in user's profile.
Is it possible to post a photo to another user's profile - just like one any user can manually add to someone's Wall Photos? i.e, a post that will have type: "photo" in the graph API instead of type "link".
Even while going through the old publish documentation, they specify you can only include attachments using links to the media you'd like to attach and not by uploading directly through the API. Looks like this is the route you're going to have to go (using the link property you've already mentioned)