Talk:Feed.publishActionOfUser
From Facebook Developers Wiki
Can someone please help with this problem? I'm trying to use the publishActionofUser method, and getting very inconsistent results. In theory, stories are being published to the user's mini-feed, because the story count is being incremented (i.e. it will say "showing 6 stories" then when I run it again it will say "showing 7 stories"), but the stories don't actually display in the mini-feed. In addition, it on;y sometimes shows up on the friend's News Feeds, even though I'm testing this with users who only have one friend and have the feed setting set to show more information about that friend. In the 20 or so times I've tested this, it has appeared on the friend's news feed once. Any help would be greatly appreciated, as I can't seem to find any information about this online. This is the code I'm using
$title = "got ".$today_score." on today's survey";
// try the code
try{
// try publishing an action to the user's newsfeed
$facebook->api_client->feed_publishActionOfUser($title);
}
catch(Exception $e){
// get the error(defined as $e above) message
$error = $e->getMessage();
// get the error(defined as $e above) message
$ecode = $e->getCode();
echo "error publishing feed:".$ecode.$error;
}
Contents |
[edit] charset in username links
I've found a problem related with this action. When I send a text to 'news' or 'mini-feed', links does not respect charset-UTF8 (characters as: áéñ...) Is this a bug? or am I missing anything?
[edit] Mini feeds dont get propagated to friends newsfeed.
I am having a similar problem to what is described above. I have two brand new users(A and B) and they have been added to each other friends list.My application (which both users have added) posts to the minifeed of user A, expecting that it will also be propagated to B's newsfeed. Although the minifeed is seen in A, i dont see the propagation in B's newsfeed. I understand that the documentation says that "it competes with other stories and controlled by preferences" but for my test, A and B only have each other as friends and there are no other competing applications(that i know of) writing to the minifeed. Also, both have the preferences set correctly.I am using the FaceBookXmlRestClient.publishActionOfUser API. Any help in solving/explaining this behaviour would be greatly appreciated.
[edit] Image Urls & Links
Here's a line worth noting - "Each image must have a link associated with it, which must start with http://". What they don't say is if you don't associate a link with each image, then the entire action is ignored.
Why not enable actions/stories to have non-clickable images?
[edit] Disallowed words list, publish it, I wants it!
I get the following when calling this method...how about letting us know all of whats disallowed, or provide some param that allows you to replace those words with an empty string.
100-The word 'message' is disallowed in a feed story.
[edit] Posting fails randomly with a "no permission" return value
One thing to verify: your application needs to be installed by the user in order to call publishActionOfUser.
[edit] Posting seems to only work for "web" type applications
Am I correct that this API call will not work for a "desktop" type of application? when I try this it always seems to return a result of 0. This seems to happen with the other feed.* methods as well. Can these be enabled for desktop apps as well as "web" apps? It would be good to use this facility to update a feed from an external application as well as an internal one.
