Flex Mobile - Posting to wall

118 views
Skip to first unread message

Joachim Petersen

unread,
May 16, 2013, 5:35:03 AM5/16/13
to facebook-act...@googlegroups.com
Hello

I have been searching to find a solution but my below code gives no error, but does not post anything to my wall:

            import com.facebook.graph.FacebookMobile;
           
            public function postToWallPopup(str : String) : void {
                var attachement : Object = new Object () ;
                attachement.link = 'https://developers.facebook.com/docs/reference/dialogs/';
                attachement.picture = 'http://boallen.com/assets/images/randbitmap_true.png';
                attachement.name = 'Test';
                attachement.caption = str;//'Reference Documentation';
                attachement.description = "Test";
                FacebookMobile.api("feed" , postToWallPopupCallback, attachement);
            }
           
            function postToWallPopupCallback(success:Object, fail:Object):void
            {
                trace("called");
            }
           
            protected function button1_clickHandler(event:MouseEvent):void
            {
                postToWallPopup("test");
            }

is there anything wrong with code above?

Khaled Garbaya

unread,
May 16, 2013, 5:37:20 AM5/16/13
to facebook-act...@googlegroups.com
  Try FacebookMobile.api("feed" , postToWallPopupCallback, attachement,"post");



--
You received this message because you are subscribed to the Google Groups "facebook-actionscript-api" group.
To unsubscribe from this group and stop receiving emails from it, send an email to facebook-actionscr...@googlegroups.com.
To post to this group, send email to facebook-act...@googlegroups.com.
Visit this group at http://groups.google.com/group/facebook-actionscript-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--------------------
Best Regards,
Khaled Garbaya
Senior Interactive Developer

Joachim Petersen

unread,
May 16, 2013, 5:49:17 AM5/16/13
to facebook-act...@googlegroups.com
Somehow you just have the solution every time. - So if I want to tag a friend the only way is to put @facebookFriendID in the message, right?

Khaled Garbaya

unread,
May 16, 2013, 5:57:14 AM5/16/13
to facebook-act...@googlegroups.com
@[USERID]


On Thu, May 16, 2013 at 11:49 AM, Joachim Petersen <joachim...@live.com> wrote:
Somehow you just have the solution every time. - So if I want to tag a friend the only way is to put @facebookFriendID in the message, right?

--
You received this message because you are subscribed to the Google Groups "facebook-actionscript-api" group.
To unsubscribe from this group and stop receiving emails from it, send an email to facebook-actionscr...@googlegroups.com.
To post to this group, send email to facebook-act...@googlegroups.com.
Visit this group at http://groups.google.com/group/facebook-actionscript-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages