Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9160437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:44:22+00:00 2026-06-17T13:44:22+00:00

I used the Facebook PHP SDK to upload a YouTube Video in the FB

  • 0

I used the Facebook PHP SDK to upload a YouTube Video in the FB user wall.
I used the “source” option in “/USER_ID/feed/” of Graph API.
USER_ID is the logged in user’s Facebook ID.

My code was working fine.
But Facebook made some changes in their API and the code is not working anymore.
Only the Youtube video image is showing but the Youtube video is not playing in facebook.

My code looks like this:-

$params =   array(
                    'access_token'  =>  $fbToken,
                    'message'       =>  $name.' has shared a Vhybe',
                    'link'          =>  $link,
                    'name'          =>  'Vhybe Social',
                    'caption'       =>  $title,
                    'description'   =>  $content
                    );

$sourceUrl  =   "https://www.youtube.com/v/".$videoId;
$imageUrl   =   "http://i4.ytimg.com/vi/".$videoId."/default.jpg";
$params['source']   =   $sourceUrl;
$params['picture']  =   $imageUrl;

$result = $facebook->api(
    '/'.$userId.'/feed/',
    'POST',
    $params
);

I tried the “Graph API explorer” tool from the Facebook developer tools section
URL => https://developers.facebook.com/tools/

But i am getting the same results.

If the above process to upload Youtube video to user wall has been deprecated can you please suggest me an alternate process.

Thanks in advance.

Sincerely,

Sourav Mukherjee

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:44:23+00:00Added an answer on June 17, 2026 at 1:44 pm

    Well the above code is working fine again.
    I did not make any changes in my code.

    Looks like Facebook corrected their own issue.

    Sincerely,

    Sourav Mukherjee

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the Graph API and the PHP SDK for Facebook to
I have used the Facebook PHP SDK to fetch the pages user likes. $liked
I have used the Facebook PHP SDK to fetch the books user liked. $books
Using the Facebook Graph API and the PHP SDK, I know that I can
I developed simple Facebook app for my WordPress plugin (I used PHP-SDK ) and
i am using Graph api to create a facebook app with PHP . require_once(facebook.php);
I've used the php-sdk to perform the login using facebook. What should I store
I have used facebook PHP SDK which generates login Url . Which I simply
Suppose that I had a logged in user through the Facebook PHP SDK, and
I've used this code to have a like btn on my site: <iframe src=http://www.facebook.com/plugins/like.php?href=URL_OF_YOUR_WEBSITE&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.