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

Set CURLOPT_FOLLOWLOCATION #41

Closed
charlie-s opened this Issue May 7, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@charlie-s

charlie-s commented May 7, 2014

If any API requests are 302'd (for example, /me/picture) the graph.facebook.com server throws a 302 to the CDN, but the curl call isn't configured to follow redirects. Should this be handled by adding

CURLOPT_FOLLOWLOCATION => true,

to FacebookRequest.php in the $options array?

@gfosco

This comment has been minimized.

Contributor

gfosco commented May 7, 2014

It looks like you can pass in redirect=false as a parameter to get a JSON response with the URL in it, or just use an image tag with the path and not the SDK since profile pictures do not require an access token.

per: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/picture/

@gfosco gfosco closed this May 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment