How to post on a friend's Timeline after the February 2013 migration takes effect?
Asked Answered
I

4

2

Since Facebook is removing the ability to post to friends' wall via Graph API from February 6, 2013 onward, I want to know if there are some alternates to post to the friend's Wall.

Till now, I was using Feed API for this- using to parameter but it throws the exception:

(#200) Feed story publishing to other users is disabled for this application

The possible solution that I found was: OG: Mention Tagging. But is there a way to accomplish this other than by using OpenGraph? Please help.

Ides answered 7/1, 2013 at 6:17 Comment(0)
N
9

But is there a way to accomplish this other than by using open graph?

Accomplish what exactly?

Tagging users/friends in any kind of posts? Only possible for Open Graph stories, or photos. (But be aware, apps are not supposed to tag users in photos if the user is not actually in it, or if it’s not a real photo, but just a composite image.)

Or posting to friend’s wall? This will only be possible using the Feed dialog from Feb. 2013 on.

Nonobedience answered 7/1, 2013 at 9:16 Comment(4)
Thanks for your answer CBroe. I want to post on users wall- how is this possible using Feed Dialog? I guess this will not work after Feb.Ides
To post to the user’s own wall, you just have to invoke the Feed dialog. To post to a friend’s wall, you can give that friend’s id in the to parameter.Nonobedience
My bad. Yes, I have to post to friends wall not users'. If I give the friends id in the "to" parameter, it gives me the same error: (#200) Feed story publishing to other users is disabled for this applicationIdes
Please check this link "developers.facebook.com/roadmap/completed-changes" -> "February 6, 2013" -> "Removing ability to post to friends walls via Graph API" "If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag)." this mean that the only way by tagging your friend's to show your post on his/her timeline.Padraig
E
2

The possibilty to post to friend’s walls via API will be removed in February 2013 – https://developers.facebook.com/roadmap/#february-2013:

If it fails for your app already, maybe you have the corresponding migration enabled in your settings? Anyway, not much point in developing such a thing now, since it won’t work any more in a week.

“We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail.”

If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.

Edit:

@Sahil: See also this answer if it works now. I am not sure it will work now or not. But you should try once. I had made some workflow previously by selecting friend and inviting him and also posting on his wall also. I havn't tested this now, please confirm me.

Equestrian answered 29/1, 2013 at 8:6 Comment(7)
Thanks for response, I've read all of this before and that is what my question is, that how to do now!Ides
@Sahil: This feature is totally removed. And not at possible now. Please read last paragraph, you can post on user's profiles and tag them in post or photo. This will be shown on their wall only they approves tag. I think this feature is removed because people are advertising and taking advantage of this feature. Now friend approved posts only shown on their wall(timeline).Equestrian
@Sahil: See also this answerif it works now. I am not sure it will work now or not. But you should try once. I had made some workflow previously by selecting friend and inviting him and also posting on his wall also.Equestrian
that's the same code i was using to post on the friend's wall, but this will not work after Feb 6 now . :(Ides
And have you tried posting on own wall with friends tagged, that post will be shown on friends wall, if they approves tag. And I believe this is the only way remained now.Equestrian
That's Mention tagging right? But why some guys (CBroe, Fjell) saying that using to parameter will work? Is it that FB.ui will work but not FB.api for posting on the friends' wall? I' highly confused.Ides
@Sahil: Yes by mentioning tagging. And I need to confirm it. I will check and let you know if I gets some news.Equestrian
H
2

If you use the to parameter with the Feed Dialog, you'll also need to specify a valid access token.

We actually had this same problem, which we solved by displaying the Feed Dialog as an iframe and dynamically adjusting the to param. You can find an in-depth answer + code sample here: https://mcmap.net/q/540788/-letting-user-specify-recipients-within-feed-dialog

Horse answered 3/2, 2013 at 11:3 Comment(2)
Is it possible to use feed dialog with more than 1 friend id in the to parameter? I mean can feed dialog be used to publish on the wall of many friends in one go?Ides
Specifying more than 1 friend id at once didn't work for us. What we did do was bind to the load event of the iframe so we could detect that the user had submitted. Then we reset the UI so the user could submit again.Horse
D
1

Check the FB.ui documentation for the feed method here: https://developers.facebook.com/docs/reference/dialogs/feed/

Setting the "to" parameter to a friend's ID will enable posting to a timeline. to - The ID or username of the profile that this story will be published to. If this is unspecified, it defaults to the the value of from.

See the Properties detail lower on that page for more info. Note that using this will trigger a confirmation dialog.

If you're using the JS SDK, here's something to get you started:

var MY_ID = "1000000000000";
    function post(link, callback){
        var post = {};
        post.method = 'feed';
        if(!link.target)
        {
            link.target = MY_ID;
        }
        if(!link.from)
        {
            link.from = MY_ID;
        }

        post.to             = link.target;
        post.from           = link.from;
        post.link           = link.link;
        post.name           = link.name;
        post.picture        = link.picture;
        post.caption        = link.caption;
        post.description    = link.description;

        FB.ui(post, function(response){
            if(typeof callback=='function'){callback(response);}
        });
    }
Dollhouse answered 31/1, 2013 at 16:27 Comment(1)
As I mentioned in the question, using to parameter in feed is also generating error.Ides

© 2022 - 2024 — McMap. All rights reserved.