MAXSTEELTURBOGO / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Facebook Connect + Actionscript API #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I'm Javier from Argentina and I'm currently reviewing and testing the Adobe
AS3 Library and the Facebook Connect...

I'm following this tutorial: http://www.stevenvh.be/blog/?p=57

But the thing is that I keep getting this errors when I compile the .fla in
Flash CS4:

1046: Type was not found or was not compile-time constant:
FacebookConnectObject
1180: Call to a possiby undefined method FacebookConnectObject

Any ideas of what's happening? My Actionscript code looks like this:

------------------------------------

import com.facebook.Facebook;
import com.facebook.events.FacebookEvent;

var facebook:Facebook = new Facebook();
var connect:FacebookConnectObject = new FacebookConnectObject(facebook,
"MY_API_KEY", this.stage.loaderInfo);
connect.addEventListener(FacebookEvent.CONNECT, onConnectHandler);

function onConnectHandler(pEvent:FacebookEvent):void{
    if(pEvent.success){
        //your facebook calls,...
    }
}

------------------------------------

My idea is to bring the Facebook Connect window above the Flash site, make
the users login, and then use the AS3 API library to access things like
their names, pictures, friends, etc.

Thanks a lot,

Javier

Original issue reported on code.google.com by maggi...@gmail.com on 30 Jul 2009 at 11:41

GoogleCodeExporter commented 9 years ago
Make sure you've dragged an instance of the FacebookConnect API component onto 
the stage.

You can delete it, but you must ensure that it's in your library before you 
test ;o)

Original comment by rick.t.w...@gmail.com on 30 Jul 2009 at 4:38

GoogleCodeExporter commented 9 years ago
Yeah, I've tried that and nothing so far... I left a .zip with the files so you 
can
take a look:

http://www.javierespana.com/uploads/fb_connect.zip

Also attached...

Thanks,

Javier

Original comment by maggi...@gmail.com on 30 Jul 2009 at 5:15

Attachments:

GoogleCodeExporter commented 9 years ago
Have you looked at the demo found here? (It is an Flex demo, but the source 
will be
mostly the same for a Flash application).
http://code.google.com/p/facebook-actionscript-api/source/browse/#svn/trunk/exam
ples/ConnectDemo/src
It may help you get a Flash/Connect demo setup, please ensure you have the 
latest SWC
downloaded from the project page.

Original comment by wgorgic...@gmail.com on 31 Jul 2009 at 5:58

GoogleCodeExporter commented 9 years ago
Javier, this is coming late, but the FacebookConnectObject is Steve VH's class 
that
extends the FacebookConnectUTIL, so it's possible you've neglected to include 
that
class?  Sorry, I've been going through SVH's demo, trying to repurpose it for 
Flex,
and ran into my own snag with the FacebookConnectUTIL class.  I actually had to
rewrite it for the time being...but I'm still in the weeds.

Original comment by m...@ramblingreports.com on 22 Oct 2009 at 6:18

GoogleCodeExporter commented 9 years ago
Yes, thanks, the thing was that the file from his website was broken and didn't
include this class... He fixed it a couple of weeks later and all worked 
great...

Thanks!

Original comment by maggi...@gmail.com on 22 Oct 2009 at 11:17

GoogleCodeExporter commented 9 years ago
New release based of Facebook's Graph API is coming soon.  SDK which this issue 
depends on is no longer supported by Facebook.

Original comment by alan...@gmail.com on 29 Sep 2010 at 7:49