Title: Bit.ly Shortlinks Multisite (Uses OAuth 2 API)
Author: Denis Lam
Published: <strong>15 Maarso, 2013</strong>
Last modified: 2 Luulyo, 2013

---

Raadi kaabayaal

![](https://ps.w.org/bitly-shortlinks-multisite/assets/banner-772x250.png?rev=682311)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/bitly-shortlinks-multisite_eeeeee.svg)

# Bit.ly Shortlinks Multisite (Uses OAuth 2 API)

 Qore [Denis Lam](https://profiles.wordpress.org/spiffyd/)

[Soo Rog](https://downloads.wordpress.org/plugin/bitly-shortlinks-multisite.1.2.zip)

 * [Faahfaahin](https://so.wordpress.org/plugins/bitly-shortlinks-multisite/#description)
 * [Dibu-eegisyo](https://so.wordpress.org/plugins/bitly-shortlinks-multisite/#reviews)
 *  [Rakibaad](https://so.wordpress.org/plugins/bitly-shortlinks-multisite/#installation)
 * [Horumarinta](https://so.wordpress.org/plugins/bitly-shortlinks-multisite/#developers)

 [Taageero](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/)

## Sharraxaad

WordPress generates shortlinks for your posts and pages. By default it uses the `?
p=` with the post ID added to it, but if you have a rather long domain name this
isn’t very useful. If you use [Bit.ly](http://bit.ly), this plugin will help you
replace the shortlink WordPress generates with a proper Bit.ly shortlink.

This plugin uses the latest Bit.ly OAuth 2 draft specification API instead of its
deprecated V3 API and enables you to use generic access token to automatically enable
Bit.ly shortlinks in your entire multisite network without the need for each site
user to have to tinker with any settings or authentication configurations.

## Sawir-shaashado

 * [[
 * Screenshot of Bit.ly shortlinks in action.

## Rakibaad

 1. Upload the `plugin` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Insert this code to define your bit.ly generic access token in your `wp-config.
    php` at the end right above “That’s all, stop editing! Happy blogging.”:
 4. define(‘BITLY_ACCESS_TOKEN’, ‘your_generic_access_token_goes_here’);

You can get your generic access token here: [https://bitly.com/a/oauth_apps](https://bitly.com/a/oauth_apps)

#### Multisite Installation

Install and set up your access token the same way as a single site installation 
but make sure you Network Activate the plugin.

#### How To Call Bitly Shortlinks In Your Templates

I’ve included the function `get_bitly($url)` to help developers easily shorten URLs
in their templates.

_Example Usage:_

    ```
    <?php
        $url = 'http://YourLongURL.com';
        echo get_bitly($url); // display your shortened URL
    ?>
    ```

## Dibu-eegisyo

Ma jiraan wax dibu-eegis ah oo ku saabsan kaabahan.

## Ka-qaybgalayaasha & Horumariyayaasha

“Bit.ly Shortlinks Multisite (Uses OAuth 2 API)” waa softiweer il furan. Dadka soo
socda ayaa wax ku biiriyay kaabahan.

Ka-qaybgalayaasha

 *   [ Denis Lam ](https://profiles.wordpress.org/spiffyd/)

[Ku tarjun “Bit.ly Shortlinks Multisite (Uses OAuth 2 API)” luqaddaada.](https://translate.wordpress.org/projects/wp-plugins/bitly-shortlinks-multisite)

### Ma xiisaynaysaa horumarinta?

[Baadh koodka](https://plugins.trac.wordpress.org/browser/bitly-shortlinks-multisite/),
fiiri [bakhaarka SVN](https://plugins.svn.wordpress.org/bitly-shortlinks-multisite/),
ama iska qor [diiwaanka horumarinta](https://plugins.trac.wordpress.org/log/bitly-shortlinks-multisite/)
adigoo adeegsanaya [RSS](https://plugins.trac.wordpress.org/log/bitly-shortlinks-multisite/?limit=100&mode=stop_on_copy&format=rss).

## Isbeddellada

#### 1.2

 * Fixed bug that occurs when `WP_ DEBUG` is on (Thanks to Luke Childs for the bug
   find.)

#### 1.1

 * Added `get_bitly()` function.

#### 1.0

 * Initial release.

## Meta

 *  Version **1.2**
 *  Last updated **13 sano kahor**
 *  Active installations **10+**
 *  WordPress version ** 3.0 ama ka sareeya **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/bitly-shortlinks-multisite/)
 * Tags
 * [bitly](https://so.wordpress.org/plugins/tags/bitly/)[multisite](https://so.wordpress.org/plugins/tags/multisite/)
   [shortlink](https://so.wordpress.org/plugins/tags/shortlink/)[shortlinks](https://so.wordpress.org/plugins/tags/shortlinks/)
   [url shortener](https://so.wordpress.org/plugins/tags/url-shortener/)
 *  [Aragti Sare](https://so.wordpress.org/plugins/bitly-shortlinks-multisite/advanced/)

## Qiimeynta

 3.7 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/reviews/)

## Ka-qaybgalayaasha

 *   [ Denis Lam ](https://profiles.wordpress.org/spiffyd/)

## Taageero

Ma heysaa waxaad dhahdo? Caawimaad ma u baahan tahay?

 [Eeg madasha taageerada](https://wordpress.org/support/plugin/bitly-shortlinks-multisite/)

## Ku deeq

Ma jeclaan lahayd inaad taageerto horumarinta kaabahan?

 [ Ugu deeq kaabahan ](http://denislam.com/)