Skip to content Skip to sidebar Skip to footer

Facebook Sdk Feed Own Timeline Only, Not On Friend's News Feed

I have some problems understanding Facebooks API. I managed to send feeds (with a 'link' and 'picture') to my own Time Line, but I want them to appear on my friend's News Feed. Onl

Solution 1:

You can definitely use the Facebook dialog to post to a friend's timeline. Note that posting via the /feed way is going soon but you can still use the dialog.

To post to a friend's timeline, you would add another parameter, "to" and pass the friend id to it:

params.putString("to", "<FRIEND_ID>");
facebook.dialog(this, "feed", params, 
    new FacebookDialogListener(FacebookDialogListener.DIALOG_FEED));

Solution 2:

@Andrej i am not sure about in android but in iPhone you can do this buy using Graph Path @"user_fb_ID/feed" like this -

[self.facebook requestWithGraphPath:@"123456789/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

I think it will be same there in android also. First of all you need to take out your fb friend's fbID. Here params is a NSDictionary object which has some info for keys like @"message",@"link",@"image",@"name",@"description".

Post a Comment for "Facebook Sdk Feed Own Timeline Only, Not On Friend's News Feed"