[英]Post params to facebook wall with android
Im trying to post to facebook with the facebook sdk, I set up my parameters in the dialog box but they do not show up when I go to post... any help? 我正在尝试使用facebook sdk发布到facebook,我在对话框中设置了参数,但是当我发布时它们不显示...有什么帮助吗? Facebook says pass the parameters name and description which I do... but nothing is showing up..
Facebook说传递我所做的参数名称和描述...但是什么都没有显示。
public void postToWall(View v){
Bundle parameters = new Bundle();
parameters.putString("name", "My App test");
parameters.putString("description", "This is a test");
facebook.dialog(this, "feed", parameters, new
DialogListener() {
@Override
public void onFacebookError(FacebookError e) {
}
@Override
public void onError(DialogError e) {
}
@Override
public void onComplete(Bundle values) {
}
@Override
public void onCancel() {
}
});
}
The "name" and "description" are only applicable if you also have a "link" parameter (which is a url string). 仅当您还具有“链接”参数(这是一个URL字符串)时,“名称”和“描述”才适用。
Here's the doc for the feed dialog: https://developers.facebook.com/docs/reference/dialogs/feed/ 这是供稿对话框的文档: https : //developers.facebook.com/docs/reference/dialogs/feed/
For "name": "The name of the link attachment." 对于“名称”:“链接附件的名称。”
For "description: "The description of the link..." 对于“描述:“链接的描述...”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.