Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

ERROR: Publish permissions: '[publish_actions]' weren't accepted by user #187

Open
achinverma opened this issue Jun 24, 2014 · 14 comments
Open

Comments

@achinverma
Copy link

HI, i am using this demo, but when i click to publish photo i 'm getting errors, anyone guides me?

06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): ERROR: Publish permissions: '[publish_actions]' weren't accepted by user
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): java.lang.Throwable
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.sromku.simple.fb.utils.Logger.getStackTrace(Logger.java:69)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.sromku.simple.fb.utils.Logger.logError(Logger.java:55)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.sromku.simple.fb.actions.PublishAction$1.onNotAcceptingPermissions(PublishAction.java:75)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.sromku.simple.fb.SessionManager$SessionStatusCallback.call(SessionManager.java:515)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.facebook.Session$4$1.run(Session.java:1542)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at android.os.Handler.handleCallback(Handler.java:733)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at android.os.Handler.dispatchMessage(Handler.java:95)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at android.os.Looper.loop(Looper.java:136)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at android.app.ActivityThread.main(ActivityThread.java:5001)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at java.lang.reflect.Method.invokeNative(Native Method)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at java.lang.reflect.Method.invoke(Method.java:515)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
06-24 16:46:46.648: E/com.sromku.simple.fb.actions.PublishAction(12242): at dalvik.system.NativeStart.main(Native Method)

@applezyy
Copy link

I'm getting this error too,have you solved it?

@samirmangroliya
Copy link

You have any solution for this error?

@j1c1m1b1
Copy link

I am having this issue too

@AndersBillLinden
Copy link

I also have it

@sromku
Copy link
Owner

sromku commented Aug 4, 2014

@achinverma @applezyy @samirmangroliya @j1c1m1b1 @AndersBillLinden
Just to be sure, I took the sample app -> logged in -> accepted dialog with perimissions -> pressed publish photo -> accepted publish permission -> done: photo is published successfully.

From the error you have it looks like you didn't accept the dialog with publish permission and thus you couldn't publish photo.

Just to make sure you checked the sample app and this how to set it up: https://github.com/sromku/android-simple-facebook/wiki/Sample-App

Please let me know, if it started working or there is still a problem.
Thanks.

@AndersBillLinden
Copy link

I seem to not get any errors like that any longer.

@judgement3214
Copy link

Application Admin can publish photo, feed with no dialog, But normal user can't. Please check this with sample app. Thanks.
Create Application with account1
https://github.com/sromku/android-simple-facebook/wiki/Sample-App
And Login with account2 -> get this error "Publish permissions: '[publish_actions]' weren't accepted by user"

@nikacot
Copy link

nikacot commented Aug 27, 2014

@achinverma @applezyy @samirmangroliya @j1c1m1b1 @AndersBillLinden @judgement3214
There is nothing wrong here. The thing is that from v2.0, the permissions other than email, public_profile and user_friends, need to be submitted for review before you can make your app live, and until then, you can test your app with the admin account ( log in on FB with your developer account credentials)
Check this link https://developers.facebook.com/docs/apps/review/login

@ghost
Copy link

ghost commented Oct 21, 2014

Do i need make submission for publish_actions when i share with facebook sdk? I tested my app on development mode with test user without this permission and it was ok. But when i switched my app to public mode dialog for publish_actions does not appear.

@stephendaniel
Copy link

I still have this problem.. Other than admin, normal user can't publish feed. I already specified the publish_action permission in the configuration but it still not working. Anyone solve this?

@RyanHsueh
Copy link

Hi all,
I got the same issue, too.

03-12 11:00:31.652 I/MXW﹕ 00 01 15 268 [RYAN] performFBPublish > onFail : Publish permissions: '[publish_actions]' weren't accepted by user

I already accepted publish permission!
And I set up publish_action in configuration, too

private void initSimpleFacebook() {

    Permission[] permissions = new Permission[] {
            Permission.USER_PHOTOS,
            Permission.EMAIL,
            Permission.PUBLISH_ACTION
    };

    SimpleFacebookConfiguration configuration = new SimpleFacebookConfiguration.Builder()
            .setAppId(getString(R.string.app_facebook_id))
            .setNamespace(FB_NAME_SPACE)
            .setPermissions(permissions)
            .build();

    SimpleFacebook.setConfiguration(configuration);

}

I can login but publish failed
Please help!

@stephendaniel
Copy link

Hi RyanHsueh,

Have you submitted the "publish_action" permission to facebook? My problem is solved after I submitted the "publish_action" permission in my app facebook developer page. Your approved item permission should looked like this one
capture

@anitalanet
Copy link

Hi.. I have the similar problem too. I also approved publish action permission from facebook but still getting same error

ERROR: Publish permissions: '[publish_actions, publish_stream]' weren't accepted by user
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): java.lang.Throwable
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.sromku.simple.fb.utils.Logger.getStackTrace(Logger.java:69)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.sromku.simple.fb.utils.Logger.logError(Logger.java:55)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.sromku.simple.fb.actions.PublishAction$1.onNotAcceptingPermissions(PublishAction.java:76)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.sromku.simple.fb.SessionManager$SessionStatusCallback.call(SessionManager.java:517)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.facebook.Session$3$1.run(Session.java:1302)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at android.os.Handler.handleCallback(Handler.java:730)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at android.os.Handler.dispatchMessage(Handler.java:92)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at android.os.Looper.loop(Looper.java:137)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at java.lang.reflect.Method.invokeNative(Native Method)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at java.lang.reflect.Method.invoke(Method.java:525)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-15 02:01:47.630: E/com.sromku.simple.fb.actions.PublishAction(1613): at dalvik.system.NativeStart.main(Native Method)

@anitalanet
Copy link

Can anyone help me for that : I am configuring app like
SimpleFacebookConfiguration configuration = new SimpleFacebookConfiguration.Builder()
.setAppId(APP_ID)
.setNamespace(APP_NAMESPACE)
.setPermissions(permissions)
.setDefaultAudience(SessionDefaultAudience.FRIENDS)
.build();
SimpleFacebook.setConfiguration(configuration);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests