cannot post to facebook

138 views
Skip to first unread message

中村俊樹

unread,
Apr 27, 2013, 9:06:48 PM4/27/13
to facebook-act...@googlegroups.com
FacebookMobile.api("/me/feed",callApi,{"message":"eating lunch"},"POST");
 
I could log in facebook following Cedric Nicolas's way like next code ↓ , but I could not post using previous code ↑. Is there anyone who know how to solve this problem?
 
 
  protected function formatData(applicationId:String,
           display:String,
           extendedPermissions:Array = null          
  ):URLVariables {
 

   var vars:URLVariables = new URLVariables();
   vars.client_id = applicationId;
   vars.redirect_uri = FacebookURLDefaults.LOGIN_SUCCESS_SECUREURL; //instead of FacebookURLDefaults.LOGIN_SUCCESS_URL !!!!!!!
 
 

Khaled Garbaya

unread,
Apr 29, 2013, 4:48:45 AM4/29/13
to facebook-act...@googlegroups.com
there's no param called message in the feed , here's the supported params

picture : url to the thumb of the post
name : tha title f the thepost
link : the link to redirect the user when he clicks on the post "title"
caption : you can puts some text here about the post
description : same as caption


2013/4/28 中村俊樹 <hika...@gmail.com>
 
 

--
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.
 
 



--
Cordialement,
Khaled Garbaya
Senior Flash Developer & chef d'equipe flasheurs
StreamerZ
----------------------------------------------
17, rue du Liberia
Tunis – Tunisie
Tel : (+216) 71 28 00 19 
Fax : (+216) 71 28 00 33 
www.streamerz.net

Joachim Petersen

unread,
May 2, 2013, 2:33:27 PM5/2/13
to facebook-act...@googlegroups.com
I also have problems with posting on wall, even with the new params - code (as3)

public function postToWallPopup(  friendID : String , 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";
                attachement.to = friendID;
               
                FacebookMobile.api("/me/feed",postToWallPopupCallback,attachement,"POST");
            }
           
            function postToWallPopupCallback(success:Object, fail:Object):void
            {
                trace("called");
            }
           
            protected function button1_clickHandler(event:MouseEvent):void
            {
                postToWallPopup("1391283", "test");
            }

Above code is not working - what is the problem?

Khaled Garbaya

unread,
May 2, 2013, 5:22:00 PM5/2/13
to facebook-act...@googlegroups.com
there's no such params called to in the me/feed , also facebook blocked post to friend's wall you should use tagging instead


--
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 2, 2013, 7:38:44 PM5/2/13
to facebook-act...@googlegroups.com
I have edited the code to this - it is still not working:

            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,"POST");

            }
           
            function postToWallPopupCallback(success:Object, fail:Object):void
            {
                trace("called");
            }
           
            protected function button1_clickHandler(event:MouseEvent):void
            {
                postToWallPopup("test");
            }

You see anything wrong with the code?
Reply all
Reply to author
Forward
0 new messages