facebookfacebook-loginfacebook-permissions

Facebook Login Permission for testing the app before submitting for review?


I am trying to get some login permission from the user in my facebook app. Facebook asks the developer to send their app for review before giving any extra permissions to the developer. For this, it seems that you have to complete the app and it is working so they can test and do whatever they want before giving the developer or the app the extra required login permission!

Currently I am only testing the application and it is not complete, but I need that extra login permission (manage_pages to be exact) so I can see what my app would do and how it will work...

But it seems facebook only asks for fully developed apps to be sent for review.

This is all very confusing. and facebook documentations is like has been written by a 2 fingered person who couldn't even be bothered with finishing the whole sentence!

The question that I have is this:

Is there any way I could create an app and get all the login permissions that required to test the app and make it all work before sending it to facebook for review?

Thanks in advance.


Solution

  • Is there any way I could create an app and get all the login permissions that required to test the app and make it all work before sending it to facebook for review?

    It's by default only. The developers/admin/testers of the app can test the application even if those are not reviewed by facebook.

    The permissions should be added in your login code. The permissions wont be asked just like that by adding them in the review details, instead the permissions are added with the login code using the scope parameter. Check this link for the details. That's straight-forward!

    For example-

    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
    

    Just test your app and when its ready submit for the review adding the extra permissions and their details. Hope that helps!