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

  • Home
  • SEARCH
  • 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 8288481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:17:31+00:00 2026-06-08T12:17:31+00:00

I used to do this using the stream.publish method, where I specified the source

  • 0

I used to do this using the stream.publish method, where I specified the source file for my .swf along with other parameters to present the media, but this is now deprecated. How can I do this using the Graph API? Specifically the Facebook PHP SDK.

  • 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-08T12:17:32+00:00Added an answer on June 8, 2026 at 12:17 pm

    With the php sdk, you can post them like this:

    $facebook->api('/me/feed', 'post', array(
        'type'=>'video',
        'source'=>'http://www.hackerdude.com/channels-test/swfscout_VideoSample.swf',
        'picture'=> 'http://fbrell.com/f8.jpg',
        'name'=> 'Facebook Dialogs',
        'caption'=> 'Reference',
        'description'=> 'Using Dialogs to interact with users.',
    );
    

    You should be able to add the link attribute to the mix, but there seem to be a bug in facebook’s api at this moment that make the posts with link in it prevent embedding the swf. this way it will be embedded but the name in the resulting post will point to the swf file which is not good. Same values with link posted with the FB.ui from the js sdk doesn’t exhibit this behavior.

    One workaround could be to create links with the proper opengraph meta tags, and post that as type => 'link'.

    the html file (video brought to you by youtube)

    <html>
    <head>
        <title>Fly, you fools!</title>
        <meta property="og:title" content="Fly, you fools!" />
        <meta property="og:type" content="website"/>
        <meta property="og:description" content="Content for Description" />
        <meta property="og:image" content="http://i2.ytimg.com/vi/meOCdyS7ORE/mqdefault.jpg" />
        <meta property="og:site_name" content="Content for caption"/>
        <meta property="og:video" content="http://www.youtube.com/v/meOCdyS7ORE?version=3&autohide=1">
        <meta property="og:video:type" content="application/x-shockwave-flash">
        <meta property="og:video:width" content="640">
        <meta property="og:video:height" content="360">
    </head>
    <body>
    <script>
        window.location = 'http://disney.com'; // redirecting users who's clicking on the link, wont affect crawlers since its in js.
    </script>
    </body>
    </html>
    

    php sdk call to share it

    $this->facebook->api('/me/feed', 'post', array(
        'type' => 'link',
        'link' => 'http://.../', // put the html file's location here
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is how I used to make method calls: SvcHelper.Using<SomeWebServiceClient>(proxy => { proxy.SomeMethod(); }
I've got 3 connectionstrings in web.config, and I used theirs like this: using (SqlConnection
I used this link to create a SHA1 hash for any data using C++.
I used this tutorial to rename a view controller http://iosdeveloperzone.com/2011/05/14/how-to-rename-a-class-using-refactoring-in-xcode-4/ Basically just switch to
I used this example (http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/) to upload file from android device to server, it
below is the code i'm using and i've used this 100x's before. And now
I've used this example to to implement some sort of guestbook, only I'm using
i'm using the kendo ui grid on my backbone application. i used this codes.
I'm using the Post/Redirect/Get pattern on a form of mine. I've never used this
I am using this piece of code (the port used is 995) : Private

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.