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

Graph API resolving to IPV6 sometime. #74

Closed
iamtrk opened this issue Mar 6, 2015 · 5 comments
Closed

Graph API resolving to IPV6 sometime. #74

iamtrk opened this issue Mar 6, 2015 · 5 comments

Comments

@iamtrk
Copy link

iamtrk commented Mar 6, 2015

Graph API requests are resolving to IPV6 some times.

We can force the API to resolve to IPV4 by adding following code snippet after curl_init
curl_setopt($this->handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);

@paulbain
Copy link
Contributor

paulbain commented Mar 6, 2015

Resolving to IPV6 is completely acceptable. If your server is IPV6 capable, then this behavior is actually beneficial. We will not provide methods to force IPV4 in the SDK unfortunately.

@paulbain paulbain closed this as completed Mar 6, 2015
@iamtrk
Copy link
Author

iamtrk commented Mar 6, 2015

Lots of data centres in India are not IPV6 capable yet, we have recently faced this issue. May be you can mention this in the documentation.

@paulbain
Copy link
Contributor

paulbain commented Mar 6, 2015

Could you configure your servers to not use IPV6 in that case? It shouldn't resolve to IPV6 if you aren't IPV6 capable, so it sounds like a misconfiguration.

@rohit1290
Copy link

Can you tell me where exactly to put the code:
curl_setopt($this->handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);

@iamtrk
Copy link
Author

iamtrk commented Feb 26, 2016

Hi Rohit,
I am not working with the SDK currently. If you trace back the method calling, you should be able to identify a code snippet where there will be a HTTP call to FB APIs which is based on curl.

Or you can simply grep for curl_init.

Thanks,
Ravikumar.

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

3 participants