Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Publicize: LinkedIn: Support for Company Pages #259

Open kraftbj opened 10 years ago

kraftbj commented 10 years ago

Publicize currently only connects to your personal account; we should allow connections to Company Pages (http://marketing.linkedin.com/company-pages/) as well.

Ported from https://plugins.trac.wordpress.org/ticket/1727

Korvacs commented 8 years ago

This has been open for almost 2 years, has any consideration been given to it yet?

jeherve commented 8 years ago

@Korvacs We haven't made any progress on this yet. We'll update this issue as soon as we start working on it.

annezazuu commented 8 years ago

Requested in 2483159-t

jpen365 commented 8 years ago

Would love to see this feature added

mookid8000 commented 8 years ago

would be lovely! - :+1: +1

lschuyler commented 8 years ago

Requested in 2511680-t

pabloleone commented 8 years ago

same here, please!

DennysDionigi commented 8 years ago

same here too! Thanks

AlejandroGiardino commented 8 years ago

same here too! Thanks

aensley commented 8 years ago

I don't mean to seem impatient, but how many users have to request something before it becomes a priority? This has been open for almost 3 years with nearly 50 different requests documented here and no progress. Were there really that many people asking for a Skype sharing button or yet another social icons widget?

The API calls are simple ( https://github.com/Automattic/jetpack/issues/259#issuecomment-76062603 ), and many have stepped up willing to do the work, except that it has to happen in a place we can't access.

Please make this a priority or tell us how we can help you do that. I'll start a social media campaign for it if you want. :-)

lannison commented 8 years ago

As there is still no progress, can anyone at least offer a workaround? Thanks

jeherve commented 8 years ago

@lannison Until this is implemented in Jetpack, you could try this plugin. It seems to offer the option to post to LinkedIn company pages:

LinkedIn - Autopost to your account. Ability to attach your blogpost to LinkedIn post. Autopost to LinkedIn Company pages and/or Groups (with third party API library)

aensley commented 8 years ago

That plugin requires a premium "API" plugin in order to enable that feature, which means we can't copy the code into our own solutions :-(. I may just have to write my own plugin for this one feature. If I do, I'll post a link here.

aheckler commented 8 years ago

2597682-t

ntpixels commented 8 years ago

2598964-t

aheckler commented 8 years ago

2634407-t

ntpixels commented 8 years ago

2653520-t

Piyush5767 commented 8 years ago

Hi Sorry for late response but that is possible with linkedln api an i am currently using that feature in my web app through which i can post my content into linkedln business page.

I am also attach my script file and my script so that it would be easy for your to take a look and if you need live example then i will share you screen shots or my web app link where it is working. But before posting that link please check below files and script and if there is any issue then update me i will check that.

Where as is there any way to post content on google+ business page as same as linkedln web page?

/*------------------------------------ Script ------------------------------------*/
function linkedln_companypost(){
        $comment = $this->input->post('xxxxxxxx');;
        $title = $this->input->post('xxxxxxxxx');
        if($this->input->post('xxxxxxxxxxx') !='' && strlen($this->input->post('xxxxxxxxx'))>250){
            $description = substr($this->input->post('xxxxxxxxxxx'),0,250).'...';
        }else{
            $description = $this->input->post('xxxxxxxxxxx');
        }       
        $submitted_url = $this->input->post('xxxxxxxxx');
        $strShare = 
        '<?xml version="1.0" encoding="UTF-8"?> 
        <share>  
          <comment>'.$comment.'</comment>  
          <content> 
             <title>'.$title.'</title>  
            <description>'.$description.'</description> 
            <submitted-url>'.$submitted_url.'</submitted-url> 
            <submitted-image-url>http://example.com</submitted-image-url> 
          </content> 
          <visibility> 
            <code>anyone</code> 
          </visibility>  
        </share>';
        $access_token = 'your access token';
        $url = 'https://api.linkedin.com/v1/companies/7786995/shares?oauth2_access_token='.$access_token;
        // build your message
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS,$strShare);
        curl_setopt($ch, CURLOPT_HEADER, 1);
        curl_setopt($ch, CURLOPT_POST, 1);  
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/xml','Connection: Keep-Alive'));
        $response = curl_exec($ch);
        $http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        curl_close($ch);    
        if($http_status == 201){
            echo true;
        }else{
            echo false;
        }       
    }
evelynriossf commented 8 years ago

I would like to add my voice to a request for this much-needed feature. We need to be able to use the Jetpack Social Media Icons to link to Linkedin business accounts on business websites!

Update: Looks like Jetpack Mechanic @jeherve actually provided a workaround in a thread here in the Wordpress Support forums.

You can hardcode a new LinkedIn Company page icon into the widget by putting the following code into your functions.php file. Just make sure to change the company name and URL to your own:

function jetpackme_linkedin_company_icon( $html_array ) {
    return
        $html_array +
        array(
            25 =>    // This key can be modified to change the order the new item will appear in the list
                '<a title="Automattic" '
                . 'href="https://www.linkedin.com/company/automattic" '
                . 'class="genericon genericon-linkedin" target="_blank">'
                . '<span class="screen-reader-text">Automattic Company Profile</span></a>'
        );
}
add_filter( 'jetpack_social_media_icons_widget_array', 'jetpackme_linkedin_company_icon' );

As far as the key, it appears that this is the list, in increments of 10, based on the code here. Your first icon has a key of 20, second is 30, etc...:

'facebook'   => array( 'Facebook', 'https://www.facebook.com/%s/' ),
'twitter'    => array( 'Twitter', 'https://twitter.com/%s/' ),
'instagram'  => array( 'Instagram', 'https://instagram.com/%s/' ),
'pinterest'  => array( 'Pinterest', 'https://www.pinterest.com/%s/' ),
'linkedin'   => array( 'LinkedIn', 'https://www.linkedin.com/in/%s/' ),
'github'     => array( 'GitHub', 'https://github.com/%s/' ),
'vimeo'      => array( 'Vimeo', 'https://vimeo.com/%s/' ),
'googleplus' => array( 'Google+', 'https://plus.google.com/u/0/%s/' ),
nemchik commented 8 years ago

Google+ pages already work with this plugin. If you're having a problem you should open a separate issue.

aensley commented 8 years ago

@evelynriossf This issue is about using the Publicize plugin to share links to LinkedIn Company pages. Your post - while helpful - is about the Social Media Icons Widget. That's a separate issue.

evelynriossf commented 8 years ago

@aensley My mistake. You are correct. It is a very similar issue for a separate Jetpack function.

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/linkedin-support-1?replies=1&view=all

annezazuu commented 8 years ago

requested here 2686724-t

ntpixels commented 8 years ago

requested in 2700934-t

walexus2000 commented 8 years ago

Please!!! Please!!! Make this a top priority! Pleeease!!!!!!

chaselivingston commented 8 years ago

requested in 2704361-t

samseen commented 8 years ago

Common Automattic, I think it's high time you took this seriously.

MikeRuddock commented 8 years ago

+1

The Jetpack developers should watch this.

paramedicquebec commented 8 years ago

I support this request!

aensley commented 8 years ago

To avoid repeating myself, I'll refer to my previous comment: https://github.com/Automattic/jetpack/issues/259#issuecomment-185819753

lamdayap commented 8 years ago

2719453-t

mstarnes commented 8 years ago

I just read all of these +1 comments. There has to be more value in posting to company pages than personal pages. Could we at least get a reasonable status report on this much-requested feature?

cena commented 8 years ago

2783446-t

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/publish-automatically-on-my-company-page-linkedin?replies=1

jrosseel commented 8 years ago

+1

jeherve commented 8 years ago

Also suggested here: https://wordpress.org/support/topic/cannot-connect-publicize-to-linkedin?replies=9#post-8786183

naturalnetworks commented 8 years ago

+1

csonnek commented 8 years ago

Also in 2819713-t

vaishalijp commented 8 years ago

I support this request!

raf202 commented 8 years ago

+1

annezazuu commented 8 years ago

2853698-t

csonnek commented 8 years ago

2860995-t

sanand0 commented 8 years ago

+1

Actually, +10 -- if I could do that :-)

BenKalsky commented 8 years ago

+1

hisnameisjimmy commented 8 years ago

+1

laudesign commented 8 years ago

+1

albertonieto commented 8 years ago

+1

timmcdesign commented 8 years ago

+1

trsenna commented 7 years ago

+1