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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:55:56+00:00 2026-05-17T01:55:56+00:00

Facebook.prototype.post = function(options) { var data = { access_token: this.data.token, // message: options.message, link:

  • 0
Facebook.prototype.post = function(options) {
var data =  { 
    access_token: this.data.token,
    // message: options.message,
    link: options.link,

};

if (options.type == 'image') data.picture = options.image;

var url = 'https://graph.facebook.com/me/feed';

if (options.friend !== undefined)
    url = 'https://graph.facebook.com/' + escape(options.friend) + '/feed';

$.ajax({
    type: 'post',
    dataType: 'json',
    url: url,
    data: data,
    success: options.success,
    error: options.error
});

};

See attached

  • 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-17T01:55:56+00:00Added an answer on May 17, 2026 at 1:55 am

    How to view video:

    Update: If you want to be able to embed a video based on the link you get from the facebook api, you could do something like:

    <object width="640" height="385">
    <param name="movie" value="http://www.youtube.com/v/vX07j9SDFcc?autoplay=1"></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <embed src="http://www.youtube.com/v/vX07j9SDFcc?autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed>
    </object>
    

    Just replace the youtube link.

    If you want it to autoplay, REMEMBER TO INCLUDE THE ?autoplay=1.

    How to share video:

    Here are two ways to do this:

    METHOD 1: Open a Popup with the URL format:

    http://www.facebook.com/sharer.php?u=%5BYoutube Link]

    Sample code to implement this would be:

    ...onclick=function() {
      window.open('http://www.facebook.com/sharer.php?u=[Youtube Link]');
    }
    

    The popup that will open will look like:
    popup

    METHOD 2: Use Javascript API:

    This can look more professional because you can display your message as an overlay iframe.

     var share = {
       method: 'stream.share',
       u: '[Youtube Link]'
     };
    
     FB.ui(share, function(response) { console.log(response); });
    

    Here’s the documentation I based my code from:

    http://developers.facebook.com/docs/reference/javascript/FB.ui

    RESULT:

    Either way, after the user clicks share, it should appear in the news feed:Example Screenshot

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

Sidebar

Related Questions

[Facebook requestWithGraphPath:@1000029327084_2428832476/likes andParams:params andHttpMethod:@POST andDelegate:nil]; This is what I do for posting my like
Facebook gives a JSON stream like this: actions: [ { name: Comment, link: http://www.facebook.com/100000335233539/posts/193845507303289
String.prototype.linkify = function() { this.replace(/((ht|f)tp:\/\/)?([^:\/\s]+)\w+.(com|net|org)/gi, '<a href=$&>$&</a>') } with http://www.google.com http://yahoo.com www.facebook.com it matches
Facebook allows a distance parameter for their search like https://graph.facebook.com/search?q=coffee&type=place&center=37.76,-122.427&distance=1000 They don't say what
facebook returns this value for publish date: 2012-05-17T05:07:43+01:00 How do I translate it to
facebook returns Error Parsing URL: Error parsing input URL, no data was scraped. when
Facebook's documentation states To read an Album you need... Any valid access_token if it
Facebook cannot grasp my og:image files and I have tried every usual solution. I'm
Facebook graph API tells me I can get a profile picture of a user
Facebook offers a simple method to add a Facebook comment function on your personal

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.