hey guys

found the problem(s) - i hadn't added the access_token to the params and it
didn't like the actions{} object (although Facebook.ui was quite happy to
accept it)

wierd but true

thanks for the help patrick

best
a

On 14 April 2011 22:27, Patrick Matte <patrick.ma...@tbwachiat.com> wrote:

> I can only suggest you just use the Facebook API directly without using
> that
> AS3 api.
>
> So something like this.
>
> var urlRequest:URLRequest = new URLRequest("https://graph.facebook.com/"; +
> userid + "/feed);
>
> var variables:URLVariables = new URLVariables();
>
> variables.access_token = token;
>
> urlRequest.variables = variables;
>
> var urlLoader:URLLoader = new URLLoader();
>
> urlLoader.load(urlRequest);
>
>
>
>
>
>
> On Thu, Apr 14, 2011 at 1:14 PM, allandt bik-elliott (thefieldcomic.com) <
> alla...@gmail.com> wrote:
>
> > hi guys
> >
> > i'm having a bit of trouble with the facebook actionscript graph api
> >
> > While i can get posting to "/feed" to work with Facebook.ui, (does a
> > facebook popup), i can't seem to get it to work with Facebook.api
> >
> > here is my code:
> > var values:Object = {
> >        name:"This is my title",
> >        link:"http://example.com<
> > http://www.google.com/url?sa=D&q=http://example.com>
> > ",
> >        picture:"http://example.com/icon-75x75.gif<
> > http://www.google.com/url?sa=D&q=http://example.com/icon-75x75.gif>
> > ",
> >        caption:"this is a caption",
> >        description:"this is a long description",
> >        message:"This is a test message. There are many like it but this
> > one is mine.",
> >        actions:
> >        {
> >                name:"Crazy extra thing",
> >
> > link:"http://example.com<
> > http://www.google.com/url?sa=D&q=http://example.com>
> > "
> >        }
> > };
> >
> > Facebook.api(_user + "/feed", handleSubmitFeed,
> > values, URLRequestMethod.POST);
> >
> > this is called after Facebook.login() with the
> > permissions "read_stream,publish_stream,user_likes" succeeds and the id
> is
> > stored in _user. I get the following error:
> >
> > [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2
> > text="Error #2032: Stream Error. URL:
> > https://graph.facebook.com/********/feed<
> >
> http://www.google.com/url?sa=D&q=https://graph.facebook.com/********/feed>
> > "]
> >
> > I'm not having any trouble with other calls to update the user's status
> > ("/statuses") or retrieving their friends list.
> >
> > Any ideas as to what the issue might be please?
> >
> > thanks
> > a
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> This e-mail is intended only for the named person or entity to which it is
> addressed and contains valuable
> business information that is proprietary, privileged, confidential and/or
> otherwise protected from disclosure.
>
> If you received this e-mail in error, any review, use, dissemination,
> distribution or copying of this e-mail
> is strictly prohibited. Please notify us immediately of the error via
> e-mail to disclai...@tbwachiat.com and
> please delete the e-mail from your system, retaining no copies in any
> media. We appreciate your cooperation.
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to