0

Facebookのウォール投稿の説明に改行を追加する必要があります。タグを使用したハッキン​​グがありましたが、<center></center>機能しなくなりました。私はAndroid用のFacebookAPIを使用しています:

public Bundle createFacebookMsg() {
    Bundle params = new Bundle();
    ...
    params.putString("description", "my custom string with LINE BREAKS");

    // does not work any more
    // params.putString("description", "line1<center></center>line2");

    ...
    return params;
}
4

1 に答える 1

-1

これは私のために働いた:

StringBuilder messageData = new StringBuilder(title).append('\n')
    .append('\n').append(message).append('\n').append('\n')
    .append(description);
// Message
postParams.putString("message", messageData.toString());
于 2013-02-16T22:36:28.947 に答える