Integration with LinkedIn.com Part 1

If your site is a business-oriented community, consider integrating it with LinkedIn.com in order to draw targeted, business-minded visitors and members. Given LinkedIn’s focus on business and technical professionals, it is an excellent potential source of social traffic to your site; simply adding an “invite friends” button from LinkedIn will allow you to draw IT and business specialists directly from LinkedIn to your website.

Talking about “integrating” is one thing; how does one integrate in practice? LinkedIn provides its members with a simple, well-documented API to allow for this and other off-site functions. The OAuth protocol, used by LinkedIn to authorize its account holders, allows you to integrate the content you create on LinkedIn with your website without the need to store the account password locally. While working with OAuth is not necessarily a simple thing, free libraries like this one (that I personally use) exist on the web to make the process an easier one.

The first step is to register your site with LinkedIn; this will in turn provide you with the API key and Secret key, each of which is needed to proceed. The keys are used to authorize users in these steps:

1. First we’ll create a temporary token for the user; this will later be used until a permanent access token is generated:

$linkedin = new LinkedIn($linkedin_api_key, $linkedin_secret_key, $linkedin_callback_url);

$linkedin->getRequestToken();

Here, $linkedin_api_key and $linkedin_secret_key are the keys obtained from LinkedIn upon registering of our application, and $linkedin_callback_url is the url on your site where the user will be redirected after authorizing.

Now a Request token is generated and gets in $linkedin->request_token where it must be retained, for example in a database.

2. Direct the user to a custom URL, formatted with the help of a Request token

header("Location: " . $linkedin->generateAuthorizeUrl());

Here the user will see a form for authorization where they’ll need to enter their email address and password. Following this, the user will be redirected back to your site, specifically to an URL which will be defined when the object is created by LinkedIn.

3. Now we need to create an object called LinkedIn and include within it all of the data necessary to generate an Access Token.

$linkedin = new LinkedIn($linkedin_api_key, $linkedin_secret_key, $linkedin_callback_url);

$linkedin->request_token = '';

$linkedin->oauth_verifier = $_REQUEST['oauth_verifier'];

Here, $ _REQUEST [‘oauth_verifier’] is a variable passed by LinkedIn.

4. Now we can generate the Access Token.

$linkedin->getAccessToken($oauth_verifier);

The code: $ linkedin-> access_token must be stored in the database for future usage.

All of these actions must be completed only during the first connection of a user to LinkedIn from your website; in the future, the same user will be able to connect to LinkedIn using the Access Token in your database:

$linkedin = new LinkedIn($linkedin_api_key, $linkedin_secret_key, $linkedin_callback_url);

$linkedin->access_token = < obtained from the database >;

// obtain data about the user

$xml_response = $linkedin->getProfile("~:(id,first-name,last-name,headline,picture-url)");
This entry was posted in PHP Tips.

307 Responses to Integration with LinkedIn.com Part 1

  1. PeterStoon says:
    Your comment is awaiting moderation.

    Player Lua Fifa Download Game
    Free download-auto traffic machine pro at max speed Page 1. Torrent AutoMapa 1 4. 1 Mapa Cracked ANDROID. BrainUp v1.0.16 Mod Sap . Free download-auto traffic machine pro at max speed Page 1. Torrent AutoMapa 1 4. 1 Mapa Cracked ANDROID.

    Gup
    fut
    Dreaf
    indiz
    phili
    gar
    Neomb
    Nax
    whimi
    Cig

  2. PeterStoon says:
    Your comment is awaiting moderation.

    October 2020 President’s Letter
    Based in London and New York, the English-language publication is part of a network of.
    FIFA Daily News – 2020-10-02 – STATOPERATOR http://patch-presidential-election.autojazz.ru/.
    Angband variants table. PES 2020 Next Season Patch 2020 Official Update v1. Framework OWASP Testing Guide / Code / r1 /OWASP-SM/ZAP. Looking for friends to fight alongside… or against. Mapinfo Professional 12.5 Keygen Downloadl – Bottom of the autojazz.ru. ThinkGiveaways – Free Giveaways, Sweepstakes & Contests . 22 Generation of DNC: Yg pgn Serial number Software autojazz.ru. So hAPPy for Android – APK Download. Greenhill – ECDL Image & Web Editing Books autojazz.ru. AnyGames Found In Here: GTAIV_Patch_1040 + Crack Razor1911. Full Software Downloads: August 2020 . WWE 2K20 Patch 1.06 Download – IGG Games. Download the BitTorrent Classic Torrent Client autojazz.ru. CD Reviews – Christian Guitar Tabs. Can I play this online, but cracked?: bf2142. Skyhook Wireless Wifi Hack Bot V 5 Torrent – MCS Partners. Color Efex Pro 4 Crack + Serial Image by arla8ggsea. Avast Free Antivirus 2020 keygen, serial, crack, generator. Create your own extension in less than 2 minutes http://magic-cracked-launcher.autojazz.ru/. CATALOGO CARPSPIRIT 2020 by Normark Italia srl . Download Miscrits: World of Creatures 1.65.0 APK File . Non DC Emulation and Homebrew News – Page 94 . Full screen borderless: : Anno 1404: Venice General. Top Ten SWBF2 map/mod/map pack. Software cracks and keygen autojazz.ru. Ulead videostudio 11.5.0157.2 plus eng rus autojazz.ru. JSFiddle – Code Playground autojazz.ru. Cs 1.6 Best Recoil Cfg 13 – Technical Information autojazz.ru. Employee Toher Speech. Counter-strike 1.6 free, CS 1.6 download 2020, cs 1.6 . Desktop-Tools Archives – WhiteCrack – Windows Activators . Lumosity Brain Training: Challenge & Improve Your Mind . AndrocrackZ: GUNSHIP BATTLE: HELICOPTER 3D v2.4.40 MOD autojazz.ru. Crack Proxifier Portable Edition Miami autojazz.ru. Need For Speed Carbon %100 Save Download find more info. .NET Script Framework at Skyrim Special Edition Nexus read this article. Software Informer – Native Instruments Maschine 2.10. Latest open source calculator 01 11 2020 . FNAF Jollibee’s Download APK for Android – FNAF WORLD . A+ Certification MCSE MCSA CCNA CCNP CISSP Network+ http://council-adobe-hacker-ethical-certified.autojazz.ru/. Android: two Spinner onItemSelected() – Stack Overflow http://power-call-patch-music.autojazz.ru/. Malwarebytes Anti-Malware Premium Lifetime Key SALE autojazz.ru. Wondershare DVD Ripper Platinum Crack Download Here . Battle Vs Chess Pc Game Serial Number.

    Gup
    fut
    Dreaf
    indiz
    phili
    gar
    Neomb
    Nax
    whimi
    Cig

  3. PeterStoon says:
    Your comment is awaiting moderation.

    Dead Trigger 2 Wiki Guide
    Dead Trigger 2 Cheats for iPhone.
    Dead Trigger 2 Hack – Online Cheat Tool 999k Resources .
    Minitab 17 Free Download Full Version With Cracks . Shadow Fight 2 Free Download for PC and Mac (2020 latest. JDK-4947404: AS7UR2 ER build crashed in Solaris x86 10 b45 . Archicad 19 Serial Code Maker Keygen our website. Kick BuddyMan 2 for Android – APK Download. Free Key Generators: Sony Vegas Pro 9.0 keygen serial crack http://cracked-vegas.autojazz.ru/. Principle Business Activity Codes: List of IRS …. Uefa champions league 2020-2020 serial number?. Download Game Dev Story for Android – Tom’s Guide autojazz.ru. FIFA 15 Game Crack And Serial Key Download his response. The Sims 2: Pets Review http://sims-keygen-pets.autojazz.ru/. MATH REVIEW FOR PLUMBING APPRENTICES. Free Video Convert Master Serial Number Downloads: Video. Download Zoner Photo Studio 15 Free – Photo Management . Play Metal soldier war, a free online game on Kongregate. Call Of Duty Ghosts Cheat Hacker go to this website. FlatOut 2 – Download for PC Free. How to install erdas imagine 2020 crack. Sql – convert Excel Date Serial Number to Regular Date. Star wars jedi knight jedi academy crack chomikuj wyszukiwarka. Fire-Cheatz: Grim Dawn Crack And Keygen PC autojazz.ru. Can’t enter license, OK button disabled, key not accepted. Plant Tycoon Activation Code Software – Free Download autojazz.ru. Eschalon: Book II on Steam autojazz.ru. Question about CoC Ice Nova breakpoints.: pathofexile. Screenpresso Pro 1.7.6.0 With Activation Key go to these guys. Help & Manual 7.5.3 Build 4740 with Keygen http://full-crack-icofx.autojazz.ru/. FREE STUFFS HERE: TERACOPY 2.12 – FREE AND PRO VERSION http://keygen-teracopy.autojazz.ru/. Sam’s Laser FAQ – Items of Interest. 3d052n Vol. 1 Ure – ProProfs Quiz. Macromedia FreeHand Tutorials – Photoshop Tutorials, Free. Tls – Why can’t Windows 98/IE5 connect to HTTPS sites in. Intergraph CAESAR II 2020 cracked. Age of Empires 2: HD Edition Bundle download torrent for PC . Governor of Poker 3 HOLDEM For PC (Windows 7, 8, 10, XP. Pikmin 3 Deluxe Review (Switch) click to investigate. Prison Architect alpha 10 adds Steam Workshop & Linux autojazz.ru. Cyberlink PowerDirector 14 Ultimate Suite autojazz.ru. An Updated Analysis of Enforcement Actions against. TicTech: Master Key For Windows Xp SP2 & Sp3.

    Gup
    fut
    Dreaf
    indiz
    phili
    gar
    Neomb
    Nax
    whimi
    Cig

  4. PeterStoon says:
    Your comment is awaiting moderation.

    Xilisoft 5.0.50 (80 Downloads)
    Games And AppZ Pack 28-AnDrOiD; DxO Optics Pro 8 1 2 Build 188 Elite + Crack – MPT; Games And AppZ Pack 29-AnDrOiD; Focus Photoeditor v6 5 1 + Keygen; Photo Slideshow Maker Platinum 5 55 + Crack; Games And AppZ Pack 30-AnDrOiD; PDF-XChange Viewer Pro v2 5 208 + Keygen; MAGIX Audio Cleaning Lab 16 Deluxe + Crack; Xilisoft iPad Magic Platinum 5 4 9 build 20130108.
    Xilisoft iphone magic review trend: Xilisoft iPad Magic.
    Top 11 Best Torrent Sites (Working in 2020! ) see this. Resilience Synonyms & Antonyms 532-school.ru. CLAT Registration Form 2020 – Last Date, Registration. Darwin op code free download 532-school.ru. Imagenomic Noiseware License Key . What is linksys wep key? . Just In Mind Prototyper Download – cheap men short. Regcure pro free license key generator – Law of mind http://regcure-license-crack-internet.532-school.ru/. SHOOTING GAMES – unblocked games 76 – Google Sites http://hacked-miragine-sites.532-school.ru/. Serial Key Windows Xp Starter Edition read full report. SYMPOSIUM ON INNOVATION AND INCLUSIVE GROWTH. Tower Defence Games Hacked. Resolution – SimCity Wiki – The best wiki for all of your. Blogger – Latest Hacks and Software Cracks. Rodnia – Rise of The Chosen l Metin2 PServer . Monster legends hack cheat. UberGeek!! : Hack WPA/WPA2 WPS – Reaver – Kali Linux. Fortnite Mobile Hack new version download – Fortnite. Serial Number Regclean Pro Software – Free Download Serial . Best PC Optimizer Software For Windows 10 To Speed Up 532-school.ru. Snapchat password hack online cheat tool http://tool-hack-hacks-password.532-school.ru/. Woozworld Hack – Get Free wooz! Generate Unlimited & No. John The Ripper: Use For Password Cracking. HappyHardcore.com – The most popular hardcore dance music http://roll-music-keygen-kaotic.532-school.ru/. DVD Photo Slideshow Professional Full dvd photo slideshow . IDM Crack 6.38 Build 12 Patch + Serial Key Latest . Simpo PDF to Word 2.1.1.0 keygen – hanar’s blog. IMovie Quick Start Guide – Ela Area Public Library. Solution for activation key not working issue for Stellar. Absorbedgun93: )Where to Buy) RadarSync PC Updater. 6 Start Menu Replacements for Windows 8 – How-To Geek visit. GPG Plugin Portable (encrypt and sign utility. Getting Started on your Free Trial – WoW – World of Warcraft. Prerelease: Super Mario 64 (Nintendo 64) – The Cutting Room. Hand-size versus Height: a Real-time hands-on activity http://with-keygen-minitab-crack-software.532-school.ru/. Advanced Systemcare 12 Pro Serial Key (lifetime Activation. Samurai Shodown RPG NGPC http://shodown-patch-samurai-translation.532-school.ru/. Microsoft Office 365 Personal. Rubber Ninjas Full Version Free (7 Downloads) you could look here. Microsoft Serial Keys – Ko Hein Htet – Google Sites. Pingzapper Premium Crack 532-school.ru. Easy_Windows_Guide – OpenVPN Community. Serial key… – General Chat – Malwarebytes Forums .

    Gup
    fut
    Dreaf
    indiz
    phili
    gar
    Neomb
    Nax
    whimi
    Cig

Leave a Reply

Your email address will not be published. Required fields are marked *