Talk:JS API M FB.Connect.showFeedDialog
From Facebook Developer Wiki
Contents |
[edit] Write Something - dialog
why my code is not work? I think i call successful, but I don't see the feed dialog? Could you help me? thanks very much .
- Not at this time, no. Pete (563683308 11:35, 28 July 2009 (PDT))
<body bgcolor="#ffffff">
<script type="text/javascript" src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script> <script type="text/javascript"> FB_RequireFeatures(["XFBML"], function(){ FB.Facebook.init("my api key", "xd_receiver.htm"); });
function showFeedDlg()
{
var FeedInfo = {"images":[{"src":"
",
"href":"http://www.xxxx.com/xxxx/index.php"}]};
var PromptMsg = "What do you think of this book?";
var UserMsg = {value: "write your review here"};
var result = FB.Connect.showFeedDialog(167603335762, null,0, "new xxx", null, FB.RequireConnect.doNotRequire, function(){console.log("that is onver?");}, PromptMsg, UserMsg);
return true ;
}
</script>
</body>
[edit] Can't see in the wall as soon as the user publish the feed
I have posted the feed to my wall using this method, and it is working successfully but it is not showing to my
friends. Whether it will take time to reflect it in their wall or not ?
- If you specify a friend's UID as the target_id, it will show up on that friend's Wall. If you post to the user's own Wall, it will show up on that user's Wall and in the News Feed of the user's friends. This won't post to more than one Wall. Pete (563683308 12:18, 13 July 2009 (PDT))
[edit] Is there a way to execute a function after the action (publish/skip) has been commited?
Is it possible? 548871286 03:56, 9 August 2009 (PDT)
- You can execute a function in the callback. Pete (563683308 11:20, 9 August 2009 (PDT))
- Pete, thanks, but for some reason, the callback only works if i click the X, when i click publish or skip it loads a new instance of that dialog. any ideas? 548871286 12:24, 13 August 2009 (PDT)
[edit] body_general before target_id?
I believe there is a mistake in this documentation. It says target_id is parameter 3 and body_general is parameter 4. I fought this all day and night and it turns out body_general is parameter 3 and target_id is parameter 4. This page also shows them in the correct order (http://wiki.developers.facebook.com/index.php/Talk:Facebook.showFeedDialog).
- Looking into this, Eric. Thanks. The code shows target_id as coming before, and these docs are generated from the code. Following up now and will post the answer here soon. Pete (563683308 10:56, 17 September 2009 (PDT))
- The code and docs are right, with one exception: target_id is a string, and not an array (previously, you could specify more than one target, but not any longer, so the type was changed to a string). If you're finding different behavior, then please file a bug. Thanks, Pete (563683308 15:28, 17 September 2009 (PDT))
[edit] Will this function be deprecated like Facebook.showFeedDialog?
I noticed over on the Facebook.showFeedDialog wiki page that that function will be deprecated on Dec 20th. Is this function going to be deprecated as well? --597920198 07:57, 28 October 2009 (PDT)
- Yes it will be. I added a notice to the page. Sorry for the oversight. Pete -- 563683308 09:39, 29 October 2009 (PDT)
