しようとしてい share a YouTube link on user wall with LinkedIn PHP API
ます。「 」でこれを試みていlinkedin_3.2.0.class.php
ます。私はあなたのチューブLinkedIn
のリンクを投稿することができ、それも再生されています. しかし、私の問題は、ユーザーがタイトルをクリックすると、FacebookアプリのURLではなく、ユーチューブのユーザーにリダイレクトされることです。私は自分の画面とコードを皆さんと共有しています..可能であれば、私が間違っている場所を教えてください.
Here is my PHP Code:
<?php
$OBJ_linkedin = new LinkedIn($API_CONFIG);
$OBJ_linkedin->setTokenAccess($_SESSION['oauth']['linkedin']['access']);
$content = array();
$content['comment'] = $_SESSION['linkedin']['message'];
$content['title'] = $_SESSION['linkedin']['title'];
$content['submitted-url'] = 'http://www.youtube.com/watch?v=Fj7kFvk-T7g';
$content['submitted-image-url'] = Config::BASE_URL . $_SESSION['linkedin']['image'];
$content['description'] = $_SESSION['linkedin']['message'];
$content['url'] = Config::APP_URL;
$content['source'] = Config::APP_URL;
$private = TRUE;
$response = $OBJ_linkedin->share('new', $content, $private);
if ($response['success'] === TRUE) {
header('Location: ' . Config::APP_URL);
die();
} else {
echo "Error sharing content:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>";
}
Here is my Screen shot: