Talk:Publisher

From Facebook Developer Wiki

Jump to: navigation, search

When using feed forms, the format for the response seems to be:

{ "method":"feedStory", "content": { "feed": { "template_id":"1234", "template_data": { "key1":"val2", "key2":"val2", "images":[{ "src":"http:\/\/www.mysite.com\/img.jpg", "href":"http:\/\/apps.new.facebook.com\/myapp\/" }] }}, "next":"http:\/\/apps.new.facebook.com\/myapp\/thanks.php" } }

Images will only appear on the short story format.

=== Preview vs. Post

With the FB Apps now supporting the publisher, the 'Link' app doesn't have a post button, but rather a preview button until the first set of data is added. Can we get some docs on how that is done please? --543396022 06:28, 7 July 2008 (PDT)

Contents

[edit] Posting to Yours and Friend's Walls from your Own Profile Publisher

The documentation page states: "When a user publishes content to a friend's profile, the {*target*} token is replaced with the friend's whole name. When a user publishes content to his or her own profile, the {*target*} token is replaced with an empty string."

This is rather unfortunate as I would think many of us would want to be able to trigger an action on another user or multiple users from our own profile (feed publisher). If they wouldn't have gone through the trouble of specifically blanking out the {*target*} variable, this would work perfectly. We obviously could have left that variable blank or not passed it at all (its not required) if we only wanted our app to post to the owner's feed only.

So what is the recommended method for publishing to both the user's wall AND someone else's wall at the same time? There HAS to be a way to do this, doesn't there?

Seems to me you could use this to publish to the friend's wall, and publishUserAction to the sender's wall...
--1573391613 11:48, 15 April 2009 (PDT)


I don't know where else to go or who else to ask as I have exhausted all avenues on facebook... my application BUDGIE SMUGGLERS has had it's gifts suspended for some unknown reason. I have not done anything to suspened gifts and have lost over 50 thousand users because of this. Facebook tell me it's my problem and that I have to fix it because it is not one of their applications. Can anybody help me please? I'm quite desperate to have this solved.

Cheers Gina

[edit] Publishing to Friend's Wall not visible by other friends?

My Application has Publisher integration, both in own user and in friends' wall. And I think something is not working right:

  • user A posts to user E wall using publisher
  • user E will have that post in his profile
  • user D (friend of both A and E) does not see the post in his news feed

Is this the right behavior? I think I recall user D being able to see this kind of posts a few days ago. Has something changed? Did I got it all wrong? Anyone knows? --1557560908 13:22, 22 June 2009 (PDT)

That shouldn't be the case, Maria. Are you getting any errors, or does the post just not appear? What's user A's Publisher Control Default privacy setting? Thanks, Pete (563683308 16:26, 22 June 2009 (PDT))

[edit] Is it possible to detect the Homepage?

I'd like to modify the behavior of my app (mostly its display, but also its filtering capabilities) when the Publisher interface is invoked on the homepage, but I can't seem to find a way to detect this. The parameters passed on the homepage all appear to be the same as my own profile view, which isn't exactly useful. I've been considering trying to muck around in the DOM and detect the width of the container to figure this out, but that's awfully hacky. Is there an easier way? --1641273433 15:20, 13 July 2009 (PDT)

Not at this time. Feel free to file a feature request and we can evaluate how and when to do this. Thanks, Pete (563683308 21:11, 13 July 2009 (PDT))

[edit] Share button not getting enabled only when trying to Publish from Profile and with app Box added??

This is a really strange behavior I am seeing, but have tried with 3 different users and its the same:

  • user adds application, uses it
  • user goes to home page, uses publisher to publish a feed form the application (all ok)
  • user goes to his own profile, uses publisher to publish a feed form the application (all ok)
  • user goes back to application, clicks on Add to Profile and adds box to Profile
  • user goes to home page, uses publisher to publish a feed form the application (all ok)
  • user goes to his own profile, _tries_ to use publisher to publish a feed form the application, share button never gets enabled (in all cases enabling it with Facebook.setPublishStatus(true))
  • user moves box from profile (wall) to boxes tab, goes back to his own profile and now publish the application feeds work fine
  • user moves box back to profile, now bug is back again

Has anyone experienced this? It's like the application box bugs the application publisher, but it makes no sense. To see if the bug was only trying to publish the application feeds I tried with the Events app, and the Share button got enabled just fine ...

Maria, that's strange behavior. Could you post your app ID or canvas URL and we can investigate? Thanks, Pete (563683308 09:53, 21 August 2009 (PDT))

(Rob) We've also been experiencing this quite a bit off and on for the last week. We're communicating via FBJSBridge to JavaScript to call Facebook.setPublishStatus(true) and sometimes the call doesn't complete on Facebook's side. But it's intermittent. See app at http://www.facebook.com/apps/application.php?id=109351997259.

Bug: http://bugs.developers.facebook.com/show_bug.cgi?id=6420

[edit] How does one set action_links with new Publisher attachment method?

I'm working on new Publisher attachment method which is great! But, how do I add action_links with this new method like you can with http://wiki.developers.facebook.com/index.php/Stream.publish currently? It's almost there, just need to be able to set that action link and then we can be done with template bundles!!! w00t!

Bug: http://bugs.developers.facebook.com/show_bug.cgi?id=5974

At this time, action links aren't part of the Publisher interface. Pete (563683308 12:48, 23 August 2009 (PDT))
reference