Title: java script for short link
Last modified: January 24, 2020

---

# java script for short link

 *  [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/java-script-for-short-link/)
 * Hello,
 * I add the code for shorter link with bitly but don’t make any change the link
   still long
 * a2a_config.track_links = ‘bitly’;
    a2a_config.track_links_key = ‘ibrahemalarabiatimes
   |53aa94221e83f0997ef8787bd30c192bd1a17351’;
 * another issue id I need to add youtube and Instagram code
 * function addtoany_add_follow_services( $services ) {
    $services[‘example_follow_service’]
   = array( ‘name’ => ‘youtube’, ‘icon_url’ => ‘[https://www.example.com/my-icon.svg&#8217](https://www.example.com/my-icon.svg&#8217);,‘
   icon_width’ => 32, ‘icon_height’ => 32, ‘href’ => ‘#’, ); return $services; }
   add_filter( ‘A2A_FOLLOW_services’, ‘addtoany_add_follow_services’, 10, 1 );
 * is this code for youtube how I can add for Instagram also
 * best regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-for-short-link%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/java-script-for-short-link/#post-12363149)
 * Bitly’s API is claiming that `53aa94221e83f0997ef8787bd30c192bd1a17351` is an
   invalid API key:
 * [https://api-ssl.bitly.com/v3/shorten?longUrl=https%3A%2F%2Fwww.alarabiatimes.net%2F&login=ibrahemalarabiatimes&apiKey=53aa94221e83f0997ef8787bd30c192bd1a17351](https://api-ssl.bitly.com/v3/shorten?longUrl=https%3A%2F%2Fwww.alarabiatimes.net%2F&login=ibrahemalarabiatimes&apiKey=53aa94221e83f0997ef8787bd30c192bd1a17351)
 * Contact Bitly for support.
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/java-script-for-short-link/#post-12363852)
 * okay what about the second issue
 *  I need to add youtube and Instagram code
 * function addtoany_add_follow_services( $services ) {
    $services[‘example_follow_service’]
   = array( ‘name’ => ‘youtube’, ‘icon_url’ => ‘https://www.example.com/my-icon.
   svg’, ‘icon_width’ => 32, ‘icon_height’ => 32, ‘href’ => ‘#’, ); return $services;}
   add_filter( ‘A2A_FOLLOW_services’, ‘addtoany_add_follow_services’, 10, 1 );
 * is this code for youtube how I can add for Instagram also
 * best regards
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/java-script-for-short-link/#post-12412564)
 * any reply to the previous question ????
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/java-script-for-short-link/#post-12486604)
 * no answer for more than 2 weeks
 * I make another API in bitly but the same issue
 * a2a_config.track_links = ‘bitly’;
    a2a_config.track_links_key = ‘tapp2050|a09bffa17b5120a6aa20b576c17f46e2dddea2bd’;

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘java script for short link’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/java-script-for-short-link/#post-12486604)
 * Status: not a support question