Facebook的SDK只喂自己的时间轴,而不是对朋友的新闻饲料 [英] Facebook SDK feed own Timeline only, not on friend's News Feed
问题描述
我有一些问题的理解Facebook的API。我设法送饲料(以链接和图片),以我自己的时间线,但我希望他们出现在我朋友的新闻饲料。只有在不使用链接和图片它出现在我朋友的新闻饲料。我使用Facebook的Android的SDK和Facebook的IOS-SDK。在这里,Android的例子:
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. Only without using "link" and "picture" it does appear on my friend's News Feed. I am using facebook-android-sdk and facebook-ios-sdk. Here the Android example:
Bundle params = new Bundle();
params.putString("name", "Some name");
params.putString("caption", "Some caption");
params.putString("link", "http://www.some-link.com");
params.putString("picture", "http://www.some-link.com/pic.png");
facebook.dialog(this, "feed", params, new FacebookDialogListener(FacebookDialogListener.DIALOG_FEED));
那么,怎样才能使我的应用程序的用户在他朋友的新闻发布包含链接和图片报供稿?请不要告诉我不能这样做,因为我自己的新闻饲料我得到的职位从经常的游戏图像。他们是如何做到这一点?也许以后我贴出使用链接和图片我自己的空间,我可以分享通过Facebook的API的对象吗?我得到的回报,以进一POST_ID。我可以做一些与POST_ID让它出现在我朋友的新闻订阅?
So how can I make a user of my app publish on his friend's News Feed with a "link" and "picture"? Please don't tell me it can't be done, because on my own News Feed I get posts with images from games regularly. How do they do this? Maybe after I posted to my own profile using "link" and "picture", can I share the object through the Facebook API? I get a POST_ID in return to "feed". Can I do something with the POST_ID to make it appear in my friend's News Feed?
推荐答案
您绝对可以使用Facebook对话框张贴到一个朋友的时间表。注意通过/进料方式投寄会很快,但你仍然可以使用该对话框。
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.
要发布到朋友的时间表,可以添加另一个参数,以和朋友id传递给它:
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));
这篇关于Facebook的SDK只喂自己的时间轴,而不是对朋友的新闻饲料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!