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

Ability to change URLs of builder API #47

Closed
sergii-okhotnyi opened this issue Jan 19, 2011 · 2 comments
Closed

Ability to change URLs of builder API #47

sergii-okhotnyi opened this issue Jan 19, 2011 · 2 comments
Labels

Comments

@sergii-okhotnyi
Copy link

I'm developing mobile application, and particularly for facebook I need to change default AUTHORIZE_URL to more mobile friendly and with scope to enable "post to wall" feature.
I've not found any other way then hardcoding in FacebookApi string to
private static final String AUTHORIZE_URL = "https://m.facebook.com/dialog/oauth/authorize?display=touch&response_type=token&client_id=%s&redirect_uri=%s&scope=publish_stream";

How do you think, can you and should do such functionality?

@yincrash
Copy link

yincrash commented Feb 9, 2011

why not wrap the FacebookApi class with your own class?

public class FacebookApiWithPermissions extends FacebookApi
{
public String getAuthorizationUrl(OAuthConfig config)
{
return super.getAuthorizationUrl(config) + "&scope=list_of_permissions";
}
}

@fernandezpablo85
Copy link
Collaborator

Yes, @yincrash solution is elegant and effortless.

No need to add this on the lib

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

No branches or pull requests

3 participants