Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot test FB.login to post without submitting app for review?

I'm building a share button that will (on the user's behalf) post some text and a link to my company facebook wall as part of a competition entry.

I need to use the scope 'publish_actions' for this. However facebook won't let me ask for that until my App has been submitted for review. How am I supposed to do that when I don't even know if my code works yet!?

I've tried creating a "test app" version of the app but it still has the same error:

publish error

window.fbAsyncInit = function() {
  FB.init({
    appId      : 'xxxx',
    xfbml      : false,
    version    : 'v2.0'
  });
};

FB.login(function(response) {
    if (response.authResponse) {

    } else {

    }
}, {
    scope: 'publish_actions', 
    return_scopes: true
});
like image 889
Titan Avatar asked May 01 '14 19:05

Titan


People also ask

Does Facebook login require app review?

If your app asks for more than than public_profile and email , it will require review by Facebook before your app can be used by people other than the app's developers.

How long does Facebook app review take?

This review usually takes less than 72 hours. In extended review: We're reviewing your app further for around 7 days, or until enough app traffic has been evaluated. You're able to earn up to $25 a day during the extended review.


2 Answers

People listed as Admins, Developers or Testers within the Roles section of your app dashboard can fully test the app, and request any permissions, without submitting it for review.

However, you must have your integration reviewed before launching your app to real people (people not listed in the Roles section) if you want to request the publish_action permission from them. The only permissions which do not require review are public_profile, email and user_friends.

As you're the developer of the app - you should be able to grant yourself publish_actions without any problems.

like image 106
Simon Cross Avatar answered Oct 11 '22 20:10

Simon Cross


Perhaps, I am a little too late with the answer. But posting in the hope that someone else may find this useful.

There is a way of testing permissions before the app is reviewed and approved. Here goes, 1. log in to https://developers.facebook.com/ and go to your app.

  1. Create a test app by clicking on the "Test Apps" option in the left menu. The test app will be a replica of your main(production) app.

  2. In your test app click on "Roles" click on the Test Users tab at the top. Here you can create test users. If you test using one of these test users, you would be able to test the permissions without the app being reviewed.

like image 41
DigitalDivide Avatar answered Oct 11 '22 20:10

DigitalDivide