Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no permission to open page after success #8

Closed
ADietrich opened this issue Jun 1, 2010 · 11 comments
Closed

no permission to open page after success #8

ADietrich opened this issue Jun 1, 2010 · 11 comments

Comments

@ADietrich
Copy link

Hello,

I would like to use the new Facebook API in my Android program, but have a problem.

I use the simple code from readme-file to authorize a user:
mFacebook = new Facebook();
mFacebook.authorize(this, APP_ID, PERMISSIONS, new DialogListener() { ... });

The dialog seemed to enter a user name and password for Facebook, but than I get the following message:
"Advanced approval: An invalid parameter was detected, abort or continue."

Afterwards, I had tried around with the generated URL and found that the parameter "display=touch" is not recognized. So I commented out line 350 in file Facebook.java:

//parameters.putString("display", "touch");

The login screen came again (saw something different) and the application seems to have been successful, because the API is now trying to open a page that can not open it. The following message is shown:
"You do not have permission to open page. fbconnect://succes/"

The permissions are the same like in the example:
PERMISSIONS = new String[] {"publish_stream", "read_stream", "offline_access"};

In the DialogListener the callback method "onComplete" is not called, but "onError", if my Android device does not have Internet access. Can someone please help me?

I use the Motorola Milestone with Android 2.01, but I develop for Android 1.6.

@soneff
Copy link

soneff commented Jun 2, 2010

Have you been able to resolve this issue? I'd like to reproduce and debug the "Advanced approval: An invalid parameter was detected, abort or continue." error: can you send me the App ID and parameters you were trying to use?

@ADietrich
Copy link
Author

Hi Steven,
thank you for your quick response. No. I could solve the problem is not, but I'm looking forward to your support offered.

my App ID is: "d967cb7a7dd06a84bfcf6d1ebafc3882"
my parameters are: {"publish_stream", "read_stream", "offline_access"}

I hope you can tell me what the problem is. For further questions, I am of course available.

@soneff
Copy link

soneff commented Jun 3, 2010

This can be fixed by migrating the app to the New Data Permissions:

go to the developer settings for your app -- for example, in your case (App ID 192861055071) http://www.facebook.com/developers/editapp.php?app_id=192861055071

then click on "Migrations", the set New Data Permissions to "Enabled"

Let me know if that works for you.

@ADietrich
Copy link
Author

Hi, thanks for the tip.
I made the setting that you've described. Unfortunately, it had no success. The error messages are the same as before.
Do you have another idea? Can the application ID may be outdated?

@soneff
Copy link

soneff commented Jun 4, 2010

Are you sure that you migrated the right app to the new data permissions? I am looking at the configuration for App "ExB petitpetit" (192861055071) right now in the administrative console, and it doesn't look like the App has been migrated. This fix seems to have worked for most other Apps: see details and more instructions at http://github.com/facebook/facebook-android-sdk/issues/closed/#issue/7

Let me know if it still doesn't work for you...

@ADietrich
Copy link
Author

You were right. The App-ID that was in my code is not the same as on the Facebook settings page. Now the requests work perfect. Thank you for your help.

@soneff
Copy link

soneff commented Jun 15, 2010

OK -- thanks for reporting and providing the detailed info! Let me know if have any other issues.

@cpiazza
Copy link

cpiazza commented Jun 25, 2010

Hello - I'm suddenly having the same issue with my android app. It's been working fine for several weeks but just today I'm receiving this same error. I've read the thread above and checked my application settings and I have the New Data Permissions enabled. My application ID is 110586198985031. Any help would be greatly appreciated.

Thanks!

@sohanbadaya
Copy link

Hi All,
My Facebook connection from Android using github android sdk worked once for me.
but suddenly from next time it's giving error "You do not have permission to open page. fbconnect://succes/ access_token='sometokenvalule' ".
I have given the migration setting that is mentioned above. But still it is not working. Can some one help me for this?. My Application ID is 114354298600019.

@soneff
Copy link

soneff commented Jun 30, 2010

@sohanbadaya pull the latest version of the repo

@sohanbadaya
Copy link

Thanks a lot for helping me out. New version is working fine.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants