Android Facebookdialog立即消失

use*_*451 5 android facebook dialog

我正在构建一个Android应用程序,需要使用facebookDialog分享一些内容(图像+文本)到Facebook.使用Facebook开发者帐户时,该对话框非常有效,但使用常规帐户时,对话框会出现,然后立即消失.我试过传递FORCE_DIALOG_AUTH,正如我在一些类似的帖子中看到的那样,但在最好的情况下,它只是让对话框打开了几秒钟.代码很简单:

FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(getActivity())
                            .setLink("https://developers.facebook.com    /android").setDescription("a description")
                        .setPicture(mPlant.default_document().getServerImagePath())
                        .build();
Run Code Online (Sandbox Code Playgroud)

LE:看起来对话框只适用于生成应用ID的开发者帐户,问题出在任何其他fb帐户中

Sag*_* G. 7

在此输入图像描述

> hope this image makes it clear  that unless you make this app live you
>     cannot test it from other account.
>     There are solutions to add tester
>     accounts if you want to test it from any other account instead of developer account,                      
>     then in "Roles" tab add a tester account,then test 
>     through this account.
Run Code Online (Sandbox Code Playgroud)