Get your cookies

To take action on your behalf on a social network, Phantombuster needs to connect as you. To do this, it needs your session cookie(s). This will give the Phantom access to your social network account.

 

 

What are session cookies?

They are one string of text generated by the websites you connect to when you log in, and they're stored in your browser. Your Phantoms will need them to use your account to automate the actions you want them to.

Don't worry! Phantombuster doesn't know your password, nor your email address, and these cookies reset when you manually log out of a website.

 

Get your cookies using Phantombuster's browser extension 

To make your life a little bit easier, we've got a browser extension which will automatically retrieve your cookies for you. You can install this directly from your Phantombuster account by clicking the "Install Chrome extension" button in the banner at the top: 

Step_1_-_install_extension_banner.jpg

Alternatively, you can find it within the Phantom's setup, right in the session cookie field:

Step_1_-_install_extension.jpg

Or find it here for Chrome or for Firefox.

The extension will work for all Phantoms and social networks on our store, so you only have to install it once. Once you've done this, refresh the page of your Phantom's setup and you'll see a new "Connect to..." button:

Step_1_-_connect_cookie.jpg

Simply click it, and your cookie will populate the box automatically! It'll look something like this:

Step_1_-_connected_cookie.jpg

 

Get your cookies manually

This tutorial is written for Chrome users. Here's how to access your cookies with Firefox or Safari.

If you aren't using Chrome or Firefox, don't worry. You can still find your session cookies for any site manually.

Open a new tab and go to the website which you want your cookies for. Right-click anywhere on the page and open "Inspect": 

Screenshot_2020-11-10_at_12.31.07.jpg

Locate the "Application" tab. Then select "Cookies" > "http://www.websiteyoureafter.com". Locate the cookie you're looking for (so, for example, for LinkedIn you'll be looking for the "li_at" value):

Screenshot_2020-11-10_at_12.28.57.jpg

Copy this and paste it back into the relevant field in your Phantom's setup.

The table below contains each social network's cookie name should you need to find them:

Cookie_names.jpg

 

You're all set!

Just one thing to note: make sure not to manually log out of the site you've retrieved your cookie for, as this will cause it to expire.

Was this article helpful?
39 out of 66 found this helpful