Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

The network at my place is using a proxy. So I have set up the proxy in iPhone. I can connect to the internet and access Facebook using the Safari browser without any problem. However when I access Facebook using the native app, it gives me a connection error. Why is this so? Does the native app use different ports instead of getting JSON objects through HTTP port? I am quite new to this, so bear with me.

share|improve this question

migrated from superuser.com Apr 5 '11 at 0:47

This question came from our site for computer enthusiasts and power users.

4 Answers 4

First, this is a really good question. Wow. I've been trying for days to figure out how to attack this one.

I set up "Charles Web Debugging Proxy" on my Mac and set up my iPhone to hit it.

First, it hits http://api.facebook.com/restserver.php, which spits this back:

<chat_connect_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd"> 
<host>9.channel</host> 
<port>80</port> 
<channel>p_123456789</channel> 
<seq>0</seq> 

Meanwhile, it also connects to iphone.facebook.com which gives some XML. Then it connects to 0.9_channel.facebook.com:80 and sends some requests which return JSON.

It looks like everything is done over port 80. Are you sure theres no other problem on your end?

share|improve this answer

Issue is with Apple not support proxy setting in ios5 for HTTPs traffic.

https://discussions.apple.com/thread/3457661?start=0&tstart=0

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
Whilst your answer may theoretically answer the question, it would be preferable to include the essential parts of the article in an answer below, and provide the link for reference –  Pfitz Dec 2 '12 at 8:11

I have wingate proxy server enabled and configured on my iphone, I get some traffic come through for facebook (which is allowed through), however my facebook app on my iphone just sits at 'updating' and does not load. There must be something missing?

share|improve this answer

facebook use port 443 to communicate between iphone

share|improve this answer
    
Port 443 is for SSL/TLS. and the web browser also uses this port to communicate with Facebook and any SSL/TLS enabled site. –  hoss Sep 6 '13 at 13:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.