创造了新的Facebook应用程序为Android PUBLISH权限不working.Used的Facebook SDK 3.14.xx和样品样品、应用程序、权限、创造了

2023-09-06 04:09:57 作者:心底生根

我使用Facebook的SDK 3.14(最新更新SDK)和Android平台创建的应用程序 像我增加了同样的选择,一切都等老的应用程序。

I am using facebook sdk 3.14(latest updated sdk) and created application for android platform like other old applications which i have added same options and everything.

我想使用共享照片功能使用以下code添加publish_actions权限是m。但权限没有得到更新或理所当然的。

i want to use share photo feature for that m using below code to add publish_actions permission. but permission is not getting updated or granted.

**我曾向我所创建上个月是工作的罚款与同code照片共享和所有的工作,权限也越来越添加其他旧的应用程序。

** I have checked with other old application which i have created last month which is working fine with same code photo sharing and all is working , permissions also getting add.

但是,应用程序,我HVE today.with的发布THT应用程序ID米无法添加权限创建。

But application which i hve created today.with tht app id m not able add permission for publish.

if (session.isOpened()) {
                // We need to get new permissions, then complete the action when
                // we get called back.
                Session.NewPermissionsRequest permission = new NewPermissionsRequest(
                        this, PERMISSION);              
                permission.setCallback(new StatusCallback() {

                    @Override
                    public void call(Session session, SessionState state,
                            Exception exception) {
//session.getPermissions() //here m not gtting publish_permission in list
                        Log.e("", "");
                    }
                });
                session.requestNewPublishPermissions(permission);
                return;
            }

我也试图与设置与Facebook SDK样本。 onactivity导致一切皆按在SDK中给出的Facebook样本。

i have also tried with samples which is provided with facebook sdk. onactivity result and all are as per facebook sample given in sdk .

任何帮助吗? **尝试创建新的Facebook应用程序,并使用该应用程序ID。

any help? ** try to create new facebook application and use that app id.

推荐答案

我找到用于测试的Facebook application.After 4月30日Facebook上的解决方案,改变有关roles.For测试了一些像publish_actions的权限,涉及需要补充一些朋友结构在Facebook的应用程序的作用。添加角色后,加入了Facebook应用程序测试人员和开发人员角色(S )我能够测试共享图像和其他东西与补充测试或开发人员现在id.For住它的发布申请进行审核process.After登录到开发者账户开放的Facebook应用程序,并检查角色菜单必需的。

I found the solution for testing facebook application.After 30th April facebook changed some structure regarding roles.For testing some of the permissions like publish_actions , friends related need to add roles in facebook app.Add testers and developer roles in facebook application after adding role(s) i am able to test that sharing image and other things with that added testers or developer id.For live now its required to post application for review process.After login into developer account Open facebook application and check the Roles Menu.