submitting facebook app for permission of publish_actions - facebook

For using score api as it is mentioned it is require to take publish_actions permission as mentioned here https://developers.facebook.com/docs/games/scores/
when I tried to add permission to my app it is giving error It looks like you haven't made any API requests to access content with the publish_actions permission in the last 30 days.
I am making call
FB.API("/me/scores", Facebook.HttpMethod.POST, PostCallBack, scoreData); in game (which is not working)
note that I am doing re-submission. any solution how can I submit facebook app for review for permission of publish_actions

Check List for you.
Your Facebook Sdk integrate properly end?. Document
Available to the general public. Facebook dev page -> apps -> status&review -> switch your app status
If your used to Facebook SDK for Unity , open InteractiveConsole scene checks work It.
Good luck :D

We had the same issue and is fixed now. THe one and only thing you have to do is to login to facebook (inside your application, once the login action is called) with your admin username and password (not with your personal username) atleast once.
If both are the same then i dont think this issue will arise.
Let me know if this worked. THanks

Related

What permission to use when sharing on Facebook using Unity

I share screenshots on Facebook from my android app (developed on Unity)
and it used to work perfect, but I guess Facebook changed their policy and I have no Idea what permissions I need to use in order to continue sharing a texture on Facebook.
That's how I log in:
var permissions = new List<string>() {"publish_actions"};
FB.LogInWithPublishPermissions(permissions);
By using CurrentAccessToken.Permissions I receive on debugger: Permissions: public_profile (which means the user didn't get the publish_actions permission).
And when I try to share the pic on Facebook by-
FB.API("me/photos", HttpMethod.POST, APICallback, wwwForm);
I receive 403 forbidden.
I read that publish_actions got removed, so how can I share a screenshot now?
Yeah there is no need for publishing permission anymore. How about trying
FB.ShareLink. this is what I use now. Facebook has a new way of sharing you can't do it frictionless anymore. With this, a popup keeps appearing related to posting.
https://developers.facebook.com/docs/unity/reference/current/FB.ShareLink

Facebook messenger app webhook subscription - Insufficient Permission

I have facebook messenger application (it is bot using MS Bot Framework, although I don't think it is relevant). It has webhook subscribed to page events. It used to work fine until few days ago, when the webhook was unsubscribed from page and when I am trying to subscribe again it tells me:
"Insufficient Permission You do not have the necessary permission for
the specified Page to perform the requested action."
I am owner and admin on both the FB page and messenger app. I created similar page and messenger app and it works there, but I still need to use this old one. I tried subscribing to other pages which I own and admin, but with same result. I also tried it with other person who is admin.
I found other people experiencing same/similar message on FB, but not in this particular case. But I haven't found any solution.
Does anyone know what could be the problem? Or have anyone experienced this issue?
Thanks in advance for any ideas.
You need to generate a token first. Under messager->Settings->Token Generation-> Select your page and you'll be prompted to give the permission. Grant all permission required, then you shall be able to subscribe or unsubscribe to pages you manage.
This process gives your application the token to validate if you have the moderator or higher rights to the page you want to subscribe to.
After spending 3 days on this. Here is the solution for this.
Go to your Facebook Profile - > Settings -> Apps
and Remove YOUR APP from there.
In Developer Dashboard Go to App Review -> Add Items
manage_pages
(This Permission Needed for Accessing page access tokens)
Add above permission for review - with any simple video of above error
Now go to Messanger-> Settings -> Token Generation
Select page from dropdown List
now it will open a popup (because you removed this app in 1st step) for app access permission , notice that now it will ask for manage pages permission
Grant those permission and create access tokens
Now try again subscribing Webhook to Pages
This Works for me.
You need to generate your page access token for this.
Go to your facebook Developer dashboard, and open the messenger tab. There, you will see this for token generation. Select your page and generate the token. Then use this token in your bot.
Page access token generation

Facebook app: How to test unapproved features

Hi I try to make the "publish_actions" feature of my web app approved but I cannot get it approved cause facebook approval system keeps asking me to include screenshot of working features.
However, I cannot provide such screenshot because the "publish_actions" feature is not approved yet.
How is it called? A catch 22 or an Chicken-Egg-dilema? Anyways...
Where should I start?
(I already tried with a test user and a developper account, both in live or developper mode)
Thanks to anyone that can help
You can create test users, or add users as "Testers" or above in your App's "Roles" tab in the developer area of Facebook.
If your app is interacting with a test user or any user with an assigned role in your app, it may request permissions that have not been granted yet by Facebook for public use. There's no trick or workaround; just simply request the permissions like you normally would for any other user.

new app-id - OAuthException (#200) on post comment

Since I created a new (Facebook) App last week, I get an OAuthException whenever I want to comment on a post.
"(OAuthException) (#200) You do not have sufficient to permissions to perform this action".
With the old App, my application works fine.
Now I found out that Facebook has changed the login policy recently. I also found the following remark on https://developers.facebook.com/docs/facebook-login/permissions/v2.0:
"If your app asks for more than than public_profile, email and user_friends it will require review by Facebook before your app can be used by people other than the app's developers".
So if I post with the same account with which I created the App, it should work, right? Only it doesn't...
Remark: if I use the new App with another Facebook-account, I have even less permissions (e.g. cannot access the account's pages). So I have more permissions if I use the same account, but still I cannot post!
I use Graph API via .NET Facebook-Client; my App is a native app (desktop app).
Could someone please tell me how to post with a new App? This is the main use-case of our application! Thank you very much!
Here is a screenshot of what I see instead of the login-screen when I use extended permission "publish_action" instead of "publish_stream"
You must be able to post with your own account since you are the admin of the application. - since only the admins/developers/testers will be able to test the app with the publishing functionality before it gets approved by facebook.
If you still are not able to, you must have not granted the permissions to the app. Things to check-
You are using publish_actions and not publish_stream
Check in your application settings whether or not you can see the publishing permission is granted for that app.
If not granted, go through the login process again and grant the publishing permission (may be by removing the app from settings and then authorizing again OR logout the app and then login again with publish_actions)
Problem solved - it was a stupid typo: I wrote publish_action instead of publish_actions (should be plural)! Thanks again to CBroe who pointed it out in this thread!

Unity Facebook SDK publish actions

I have a problem when posting player score via the unity facebook sdk.
The code for the scores API is calling fine, but the only problem is that the App cannot grant the publish_actions permission when the user login.
I tried with and without the native facebook app, also login with the init() dialogue or the function below:
FB.Login("email,publish_actions", LoginCallback);
I checked the permission in the App Settings in the tester account and its only showing Basic Information which cannot post. I will greatly appreciate if you can give me advices. Thank you very much.
Just use the publish_actions and not the email..