Adding Facebook app permissions for development purposes - facebook

I am trying to add some additional permissions to my Facebook app, namely user_likes, user_events, and user_interests to test out the functionality of each before I go into a hackathon project. However, while doing this from "Status and Review" it seems the Facebook app requires a logo, description, and privacy policy URL to even be able to request these permissions. Futhermore, the app doesn't even exist yet, so there is no such thing as a privacy policy page yet.
How can I test out some of these additional permissions just for development purposes? I tried creating a test app but this doesn't seem to have any sort of option to add permissions.

You should be able to request additional permissions during the login phase, during development and while in sandbox mode, without going through any review.
During this time you're restricted to test users and others users explicitly added to the Testers section of the Roles page for your app on developers.facebook.com.
https://developers.facebook.com/docs/facebook-login/permissions/v2.0
Only when making the app visible to all members of the public do you have to go through review.

You dont need to do anything special while your app in development mode. Just create the app and add permissions to your login code and test. That's it.!
The permissions are added in the login code using the scope parameter. Click here for more details.
For Example, if using-
JS SDK-
FB.login(function(response) {
// handle the response
}, {scope: 'manage_pages'});
Manual login flow-
https://www.facebook.com/dialog/oauth?
client_id={app-id}&
redirect_uri={redirect-uri}&
auth_type=rerequest&
scope=manage_pages
After your app is ready, send for the review with details regarding these additional permissions, privacy policy etc.

Related

How to request pages_show_list permission with Facebook Graph API?

I tried 2 way, one in the Facebook Developer site find permission request with this name, I couldn't find it.
add as a 4th parameter to the Facebook Login Button, it did not help
<FacebookLogin
appId={fbAppId}
autoLoad={true}
fields="name,email,picture,pages_show_list"
onClick={this.componentClicked}
callback={this.responseFacebook}
/>
Do you have any other idea?
The Facebook API works like this,
Development Mode: For development mode you can try to access pages which were associated with the account in which app created. So, that pages associated with that user can be accessible. You can retrieve the pages using following link,
https://developers.facebook.com/docs/graph-api/reference/user/accounts/
Live mode: In case of live mode you need to create a video of snapshot using your development mode functionality and get "pages_show_list" permission approved. Then you can access the pages details associated with authenticated users.
For login button you can try like this,
fb:login-button size="large" scope="public_profile,email,pages_show_list,read_insights,manage_pages" onlogin="checkLoginState();"
which gives you token and use that token to get pages associated with user account.
If you are using the js SDK of Facebook then there is an option to ask permission through SDK functions.
FB.login(function(response) {
// handle the response
}, {scope: 'public_profile,email,..other persmissionlist'});
Note:-
Use this concept only when your app is in the testing phase and
wants to create a request for permission in App Review or there are
some permissions enabled but you want only a few.
Use this approach with Test users only.
Reference link:-
https://developers.facebook.com/docs/facebook-login/web#re-asking-declined-permissions

Who have to screencast for Facebook approval?

I'm using Facebook api to post news on my page.
The process is as follow :
Edit the news on my website
Put the news on a pool, waiting to be published on my Facebook page
A cron is runing and take one news from the pool and post it on my Facebook page.
I'm not using any Facebook's button, everything is done in the background.
So do I have to make a screencast for Facebook approval ? (If yes I really don't know how to make it)
Someone can help please ?
So do i have to make a screencast for Facebook approval ?
In general, that depends - on whether you are able to grant all necessary permissions, when your app is in “live” mode.
You are going to need manage_pages and publish_pages permissions for this. For newer apps, Facebook does not allow to grant publish_pages any more, when the app is “live”, but the permission has not been approved yet in review - even for users with a role in the app.
So you will need to submit for review and get this approved, otherwise you won’t be able to grant this permission in live mode. (Your app needs to be in live mode; in dev mode all content created through it would only be visible to people with a role in the app, but hidden from normal users - not what you want.)
https://developers.facebook.com/docs/apps/review/server-to-server-apps gives instructions on how to submit an app that does not have a normal, public facing login implementation.
Make sure to describe to them very clearly that this app is not for public use.

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.

Test Facebook permissions not yet granted

Is there a way for me to test permissions that are not yet granted to my app by Facebook like the "user_status" permission? I need to test "user_status" for a future app that is not yet in develop since I need to prove that what the client wants is possible.
As long as you are testing with an app admin/tester/developer, everything should work, even if the app didn't pass the facebook Review yet.
See
https://developers.facebook.com/docs/apps/review/login#do-you-need-review
However, in order to help you craft your Facebook Login experience, your app's developers will be able to see, and grant, any permission without requiring review by Facebook.
Note: People who are listed in your app's Roles tab will have access to extended permissions without going through review (e.g. publish_actions or manage_pages). For example, if you use the Facebook Plugin for Wordpress to publish your blog posts to your Facebook Page or Profile, you do not need to submit for review so long as all your publishers are listed in your app's Roles tab.
Also, if you're the developer of an app and are the only person using it, then your app doesn't need to go through review. Since you're the developer, all app capabilities should be available. You will still need to take your app out of developer mode, but you should be able to do that without going through review.

issue updating facebook user status from my app

what permissions do i need for my facebook app to update status on user behalf.
I already have publish_actions and publish_streams permissions but still my app gives me an error:
error 200: the user did not grant this app the required permissions.
The permissions set in the App Settings are not applied to the app. They are used for logins triggered from the App Center by the Play Game/Go to App buttons – since that is a mechanism where you as the app developer don’t trigger/implement the login yourself, you can not set a scope parameter there; and therefore you make those settings in your app dashboard, so that Facebook knows what permissions to ask for when the user enters your app this way. - Info by CBroe.
For the permissions be applied in your app, you should set the permissions through your code. The permissions are set while implementing the login functionality. For eg: In Javascript, it is done like this: FB.Login