提要对话框android facebook

时间:2015-10-21 10:47:19

标签: android facebook

//有时在Facebook上使用Feed对话框时出现此错误:com.facebook.android.DialogError:net :: ERR_SPDY_PROTOCOL_ERROR //某个时候它有效,有时它不会(加载出现没有任何反应)错误是在dialogerror函数上返回

这是代码:

                            Bundle parameters1 = new Bundle();


                            System.out.println("link>>>>"+srcLnk);
                            System.out.println("picture>>>>"+imagesrc);
                            System.out.println("name>>>>"+titlev);
                            System.out.println("description>>>>"+Html.fromHtml(url.toString()).toString());
                                 parameters1.putString("link",srcLnk);
                                 parameters1.putString("picture",imagesrc);
                                 parameters1.putString("name",titlev);
                                 parameters1.putString("caption","www.alsumaria.tv");

// parameters1.putString(“description”,url.toString()。replaceAll(“\\ n”,“
”));                                      parameters1.putString( “描述”,Html.fromHtml(url.toString())的toString());                                  facebook.dialog(活性, “进料”,参数1,

                                      new DialogListener() {
                                           @Override
                                           public void onComplete(Bundle values) {
                                               Toast.makeText(activity, "Posted successfully", Toast.LENGTH_SHORT).show();
                                           }

                                           @Override
                                           public void onFacebookError(FacebookError error) {
                                               error.printStackTrace();
                                           }

                                           @Override
                                           public void onError(DialogError e) {
                                               e.printStackTrace();

                                           }

                                           @Override
                                           public void onCancel() {}
                                      }
                                );

0 个答案:

没有答案