Facebook发布/分享链接与图像

时间:2014-12-09 13:51:11

标签: android facebook

只能使用开发者帐户等进行发布...对于其他帐户:

{"error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200}}等......

这是在尝试发布/分享指向fb的链接时显示的响应...

这是我的fb发布代码:

public void facebook_post() {

    nProgress = new ProgressDialog(this);

    nFacebook = new Facebook(APP_ID);

    SessionStore.restore(nFacebook, this);

    AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(nFacebook);

    Bundle params = new Bundle();

    params.putString("message", " ");

    params.putString("name", "");
    params.putString("caption", " ");
    params.putString("link",
            "");
    params.putString("description",
            "");
    params.putString("picture",
            "");

    mAsyncFbRunner.request("me/feed", params, "POST",
            new WallPostListener(), null);

}

1 个答案:

答案 0 :(得分:0)

根据新的Facebook政策,如果您要发布任何内容,则需要提交您的应用以供审核。在Facebook批准后,您可以使用任何登录上传图片。您可以查看此链接以查看审核流程

https://developers.facebook.com/docs/apps/review/

https://github.com/sauce/guide/wiki/Facebook's-approval-process