Solved

how can i show facebook updates inside a flash website

Posted on 2010-08-24
6
379 Views
Last Modified: 2012-05-10
is it possible to show facebook satus updates in a web-site that is completely flash? any suggestions on how to do it?
0
Comment
Question by:hallandoats
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
level9wizard earned 500 total points
ID: 33521415
You would need to first interface with some serverside language (such as PHP), where the server-side language would do all the API calls to FaceBook, and then have your SWF communicate with that PHP script using dynamic var or have php write to mxml.

Using a simple dynamic flash var approach you could do:
onClipEvent (load) {
  //assuming you have a personal web server and PHP installed locally
  loadVariables("http://localhost/faceBook_API.php", this, "GET");
}
0
 

Author Comment

by:hallandoats
ID: 33537631
can you please explain a little more, I'm kinda new to this
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33541901
hallandoats>>can you please explain a little more, I'm kinda new to this

Since you are new to this, providing code might not be the best place to start, so I'll try and break it down in simple language if I can.

"Out of the box", Flash is a client-side language/application - meaning once it is downloaded (through a web browser for example) the code executes locally (no interaction back to the server), much the way core javascript works.

In order to communicate back to the server (such as to Facebook's API) you will need to connect your flash application to a server side language (such as PHP or ASP).

I think you should do a little Google-ing, there's so much documentation on this and some reading will really help you. For example, here's an article I quickly found that looks promising. It takes a number from Flash, sends it to PHP to get modified, then gets sent back to Flash. Once you learn how to do this, you can easily have that PHP file make a call to Facebook's API (inside PHP):

http://www.actionscript.org/resources/articles/141/1/Introduction-to-Flash-and-PHP/Page1.html
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hallandoats
ID: 33543791
Thanks for the fast reply, I tried googling but wasn't sure what the to search. Obviously searching flash/facebook status update crap didn't do me any good when I don't know what I'm doing...heh..I will read on what u posted this weekend. Thanks again :)
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33558276
hallandoats>>Obviously searching flash/facebook status update crap didn't do me any good when I don't know what I'm doing

Yea, you'll want to first learn how to get flash talking to a server-side language (like PHP), then you can move to the next level of having that server side language talk to Facebook's API. Try to search for things like:

- Flash and PHP
- Server side Flash
- flash talk to php

(you can substitute PHP for any other server-side language such as ASP).
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33558330
You will also want to take a look at this:
http://code.google.com/p/facebook-actionscript-api/

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question