创建新的Facebook应用程序的Android发布权限不工作。使用Facebook sdk 3.14.xx和样品 [英] Created New Facebook Application for Android publish permission not working.Used Facebook sdk 3.14.xx and samples

查看:134
本文介绍了创建新的Facebook应用程序的Android发布权限不工作。使用Facebook sdk 3.14.xx和样品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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.

我想使用共享照片功能,因为我正在使用以下代码添加publish_actions权限。但是权限没有被更新或授予。

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.

但是我今天创建的应用程序,该应用程序ID我无法添加发布权限。

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;
            }

我也尝试了与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的解决方案4月30日之后,Facebook更改了关于角色的一些结构。为了测试一些诸如publish_actions之类的权限,朋友需要在Facebook应用程序中添加角色。添加角色后,在Facebook应用程序中添加测试人员和开发人员角色我可以通过添加测试人员或开发人员id来测试共享图像和其他内容。需要发布申请审查过程。登录开发人员帐户后,打开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.

这篇关于创建新的Facebook应用程序的Android发布权限不工作。使用Facebook sdk 3.14.xx和样品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆