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 7615529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:39:55+00:00 2026-05-31T02:39:55+00:00

Im trying to embed a video on my facebook PAGE feed-wall with the below

  • 0

Im trying to embed a video on my facebook PAGE feed-wall with the below code.
It uploads to facebook, but the thumbnail image is not showed and the video is not embeded.
It displays a link, that opens the video in a new seperate window.

FB.api('/' + page_id, {fields: 'access_token'}, function(resp2) {
        if(resp2.access_token) {
            FB.api('/' + page_id + '/feed', 'post',{

                message: headline +' \n'+ texten, 
                access_token: resp2.access_token,
                picture: imgURL,
                embed_html:"<object width=\"480\" height=\"360\" ><param name=\"allowfullscreen\" value=\"true\" /><param name=\"movie\" value=\"http://www.facebook.com/v/<%=facebookPageId%>\" /><embed src=\"http://www.facebook.com/v/<%=facebookPageId%>\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"480\" height=\"360\"></embed></object>" ,
                width: 480, 
                height: 360,
                source : videoURL,
                name   : headline,//rubriken brevid thumbnail bilden
                link   : videoURL//länken dit rubriken pekar, måste ha ett värde annars går länken till bilden på appmanagern!!!
                //description : '<'%=facebookDescription%>'
                }

I dont know what Im missing, any input appreciated, thanks!

I fixed it! See below.

  • 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-05-31T02:39:56+00:00Added an answer on May 31, 2026 at 2:39 am

    I tought that I would share how to upload and embed a video on a Facebook PAGE feed with the Facebook graph javascript api!

    1. You have to create a facebook app – you need the app id when you log in the user.
    2. You also have to ask for the user permission when he logs in – I have publish_stream, read_stream, user_videos etc.
    3. Then when the user that is going to post to facebook have logged in to facebook with the right permissions, then ….
    4. I downloaded the latest JW Player files and uploaded the jwplayer.js and player.swf files to my server in the same folder as this code.
    5. And I use the below code:

      function postToPage2() {

      var imgURL = 'http://www.mypage.com/images/image.jpg';
      var videoURL = 'http://www.mypage.com/video/video.mp4';
      var swfURL ='http://www.mypage.com/video/player.swf?file='+videoURL+'&autostart=true&controlbar=false';
      var page_id = 'my facebook page id';
      FB.api('/' + page_id, {fields: 'access_token'}, function(resp2) {
          if(resp2.access_token) {
              FB.api('/' + page_id + '/feed', 'post',{
      
                  message: headline +' \n'+ texten, 
                  access_token: resp2.access_token,
                  picture: imgURL,
                  width: 400, 
                  height: 300,
                  source : swfURL,
                  name   : 'headline',
                  link   : 'www.manmade.se',
                  description : 'some text'
                  }
      

    This works the same if you upload to a ordinary facebook users aswell.

    I hope you like it!

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

Sidebar

Related Questions

I am trying to embed Facebook video using the code below: <object width=400 height=224
I am trying to embed any video in a page, but it does not
I'm trying to embed an M4V video, it works on the iPad but not
I am trying to embed a facebook video on my website but it gives
I'm trying to embed a youtube video on to my page once the user
Following chunk html code works as expected: <iframe src=http://www.amazon.com/></iframe> But when trying embed inner
I'm trying to convert a camtasia html/javascript video embed code to a wordpress flowplayer
I'm trying to embed video in pages. I tried two different ways but no
I’m trying to display a page of embed YouTube videos. I got the code
Im trying to put an html embed code for a flash video into the

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.