Created New Facebook Application for Android publish permission not working.Used Facebook sdk 3.14.xx and samples

孤街醉人 提交于 2019-11-30 19:12:00

问题


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.

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

** 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.

But application which i have created today.with that app id I am not able to 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 getting publish_permission in list
                        Log.e("", "");
                    }
                });
                session.requestNewPublishPermissions(permission);
                return;
            }

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

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


回答1:


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.



来源:https://stackoverflow.com/questions/23679083/created-new-facebook-application-for-android-publish-permission-not-working-used

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!