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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:25:12+00:00 2026-05-30T21:25:12+00:00

I’m absolutely new to programming and just managed to learn the basics of ActionScript

  • 0

I’m absolutely new to programming and just managed to learn the basics of ActionScript 3. Now, I would like to learn how to post on my Friends’ Walls via the as3 SDK using the UI class (taken from a nice Tutorial):

This is how I post on my own Wall:

protected function newsFeed ():void
        {
            
            // define your caption text
            var theCaption:String = "CaptionText";
            
            // define the descrition text
            var theDescription:String = "Text for game Achievement";
            
            // We need to follow the FB docs to tell it what sort of input we are sending to FB
            // We are trying to set the 'feed'
            var methodInput:String = 'feed';
            
            var thePicture:String = "mylink/picture.png";
            var theLink:String = "mylink";
            var theName:String = "Name of FB Status Setter";
            
            // Create an object that we'll call 'data' and fill it with the actual data we're sending to Facebook
            var data:Object = {
                caption:theCaption, 
                description:theDescription, 
                picture:thePicture, 
                name:theName, 
                link:theLink
            };
          Facebook.ui(methodInput, data, onUICallback);
         }

protected function onUICallback(result:Object):void
    {
    // do something
    }

This works perfectly fine. I know that I have to integrate the parameter "to" somewhere. But I don’t know where and how. Sorry I’m very very new to this. This is from Facebook Docs

Properties

from: The ID or username of the user posting the message. If this is unspecified, it defaults to the current user. If specified, it must be the ID of the user or of a page >that the user administers.

to: The ID or username of the profile that this story will be published to. If this >is unspecified, it defaults to the the value of from.

Hopefully someone can help me out.

Best Regards,
Amir
P.S.: Is there a way to post only one friend’s wall and another way to post on several friends’ walls?

  • 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-30T21:25:14+00:00Added an answer on May 30, 2026 at 9:25 pm

    I believe you want to use Facebook.api() rather than ‘ui’. According to the documentation for the AS3 FB API, ‘ui’ just opens the share dialog. If you want to create a post on a friends wall, then you’ll want to use ‘api’.

    I haven’t tested this in Flash, but I think you can set the method as /PROFILE_ID/feed … of course replacing “PROFILE_ID” with the FB uid of the friend. Then, include the arguments; message, picture, link, name, caption, description and source in your data object.

    So your code would look something like:

    var method:String = "/friend_id/feed";
    var data:Object = {};
    
    data.message = "Your message";
    data.picture = "http://www.google.com/kittens.jpg";
    data.link = "http://www.mysite.com/link";
    data.caption = "Your caption";
    data.description = "Your description";
    data.source = "http://www.mysite.com/video.swf";//(optional) source is a video or Flash SWF
    
    Facebook.api(method, yourCallback, data, "POST");
    
    function yourCallback(result:Object, fail:Object):void {
        if (result) {
            trace(result)
        } else if (fail) {
            trace(fail);
        }
    }
    

    If you have multiple friends, you could probably just put the uid’s in an array and loop through the method above. The AS3 API has a batch request method that I haven’t tried, but you can check out the Documentation.

    Facebook has some pretty helpful tools that are somewhat hidden.
    Checkout their Debugger and their Graph API Explorer

    Hope that’s helpful.

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

Sidebar

Related Questions

I would like to count the length of a string with PHP. The string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported

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.