Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how can i show facebook updates inside a flash website

Posted on 2010-08-24
6
Medium Priority
?
387 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 2000 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 2000 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 2000 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

610 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