我的应用程序有一个按钮,启动Facebook网页对话框。登录后,应用程序有一个对话框供用户编写一些内容,当他点击“分享”按钮时,我们代表他发布链接。帖子在用户提供错误的内容后组类似帖子
在短时间内做了2次或3次“分享”操作,Facebook将用户Feed中类似的内容进行分组,而不是显示正常内容,它显示了附件上显示的内容。用户时间轴是正常的。
我们使用以下implemetation来发布链接:
Bundle postParams = new Bundle();
postParams.putString("name", getString(R.string.app_name));
postParams.putString("caption", getResources().getString(R.string.home));
postParams.putString("description", someDescription);
postParams.putString("message", someMessage);
postParams.putString("picture", a link to a picture);
postParams.putString("link", a link to open the page to download the app);
final Request request = new Request(this.session,
"me/feed", postParams, HttpMethod.POST);
request.setCallback(new Request.Callback() {
@Override
public void onCompleted(final Response response) {
final FacebookRequestError error = response.getError();
if (error == null) {
// Do something
} else {
switch (error.getErrorCode()) {
case FEED_LIMIT:
// Do something
break;
case DUPLICATE_MESSAGE:
// Do something
break;
case MISSING_MESSAGE:
// Do something
break;
case CONNECTION:
// Do something
break;
default:
// Do something
break;
}
}});
request.executeAsync();
我们只是做到这一点,我们可以重现,看到它的发生。
希望它有助于理解。
如果您只点击一次,那么一切工作正常.. –
是的,只有一次正常工作。但是,如果出现不止一个相同的内容,在我的信息源或朋友的信息中,就会出现这种情况。 –
我认为它是一个线程同步的问题。 –