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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:09:52+00:00 2026-06-05T14:09:52+00:00

i’m trying to learn how to get my own facebook & twitter wall status

  • 0

i’m trying to learn how to get my own facebook & twitter wall status into flash so that I can export it out and install it in my iPhone.
After reading the facebook and twitter API documentation, I’m still very confussed on how to use them.
I’m very new to this and hope to get a suitable tutorial/sample code for some reference.

Help is appreciated. Thank you.

  • 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-05T14:09:54+00:00Added an answer on June 5, 2026 at 2:09 pm

    For Twitter it is easy. Just write the AS3 code to load the Twitter user RSS as XML. After that you will be able to use it.

    var myXmlLoader:Loader = new Loader();
    myXmlLoader.load(new URLRequest("http://twitter.com/statuses/user_timeline/@twitterUser.rss"));
    
    // just replace "twitterUser" with your twitter user, leave all the rest as is
    
    myXmlLoader.addEventListener(Event.COMPLETE, xmlLoadCompleted);
    function xmlLoadComplete(evt){
        var myWallData:XML = new XML(evt.target.data);
        trace(myWallData); // you will get an RSS XML with the last 20 tweets from your account
    }
    

    To get an RSS from your Facebook wall you can use this:
    https://www.facebook.com/feeds/page.php?id=23749877160&format=rss20
    where 23749877160 is your Facebook account ID

    that will give you an rss with your Facebook just as twitter does,

    But you need some trick to load it with flash.
    Locally you can load it and it works good using the same code to load the twitter,
    but on the web your swf wont be able to load, some crossdomain issue.

    To fix this what I did is a simple PHP file to load the rss and save a file with the loaded content.

    PHP code:

    <?php
    
    set_time_limit(300); // this is to set the time limit to execute a code, is that the facebook wall take too long to load
    
    $fbURL = "https://www.facebook.com/feeds/page.php?id=23749877160&format=rss20";
    $fileName = "myFileName.xml"; // the name you want to do to your file, the file you will load with flash
    
    $doc = new DOMDocument();
    
    if($doc->load( $fbURL )){
        $doc->save($fileName); // saving file in server folder
        }else{
           echo "error";
           }
    ?>
    

    This is cool but you need to execute the PHP file before intent to load the generated XML. you can use this code to do the trick

    AS3 code:

    var myPHPLoader:Loader = new Loader();
        myPHPLoader.load(new URLRequest("xmlGenerator.xml"));
        myPHPLoader.addEventListener(Event.COMPLETE, phpLoaded);
    
    function phpLoaded(evt){
     trace("PHP executed");
     // do whatever you want
     // after the php is executed you can load the fbXml generated normally 
     }
    

    This works good, but keep in mind that the twitter rss and Facebook RSS, has a call limit per hour (150 call) for twitter, for Facebook I dont know. so if your app reach that limit before complete the hour it will call the empty xml or an error.

    dont worry for Facebook in this example you have an PHP that will save the file just if it loads good, if the PHP dont loads the Facebook wall then it wont save the file, so your app will load the old fbXml.

    Use the same php to load the twitter rss and save a file to be loaded from your flash app.

    What I did is the follow.

    PHP Code:

    <?php
    
    function savePlainRss($loadURL, $fileName){
        set_time_limit(300);    
            $doc = new DOMDocument();
    
        if($doc->load( $loadURL)){
            $doc->save($fileName);
            }
        }
    
    savePlainRss("https://www.facebook.com/feeds/page.php?id=23749877160&format=rss20", "myFacebookWall.xml");
    
    savePlainRss("http://twitter.com/statuses/user_timeline/@twitterUser.rss", "myTwitterRSS.xml");
    
    ?>
    

    This code will save an XML file for twitter rss and Facebook Wall but just if it can load it, if dont it will keep the old file.

    Then from flash load the generated XML files.

    For me to be sure my app wont reach the call limit and avoid twitter or facebook tag my app as spam, I did a cronjob on my Server to execute the PHP file
    each 15 minutes so the calls to twitter and Facebook per hour is just 4, you can find help in google about how to do a cronjob, some hosting and web server have tools to do it.

    you can do de calls each 5 minutes if you want more frequently updates or less, but keep in mind that the facebook load can take a long time, up to 300 seconds (5 minutes) dond use less than that to be sure you will have the complete work done.

    Thanks for reading.
    I hope it helps 🙂

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,

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.