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

Fields with Parameters? #95

Open
PaulAik opened this issue Jan 13, 2015 · 1 comment
Open

Fields with Parameters? #95

PaulAik opened this issue Jan 13, 2015 · 1 comment

Comments

@PaulAik
Copy link

PaulAik commented Jan 13, 2015

Hi,

Is there a way to submit a request to the Graph API with parameters? E.g. this doesn't work for me:

"me/picture?width=200&height=200&redirect=false"

Seems adding the values on to width and height breaks? I've tried it a few ways with no success.

FB.api('me/picture/', {
      fields: ['width=200','height=200'],
      redirect: false,
      access_token: accessToken
    }, function(result) {
      console.log(result);

    });
@aymanosman
Copy link

Do this my friend:

FB.api('me/picture/', {
    width: 200,
    height: 200,
    redirect: false,
    access_token: accessToken
}, function(result) {
    console.log(result);
});

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

2 participants