问题
First of all, please do not downvote this post. This is my observance that the php sdk only works in https connections. All the websites which I know(including mine) which have an http connection cannot connect with facebook at all and the $user returns 0 because of which many users are suffering. Please look at a question posted for bounty in stackoverflow -> here. I initially thought that the reason for the problem was blocked ports but now, even in my website $user returns 0.
I want to know that is here anyone who has the php sdk working in a http connection? or else I will buy an SSL soon.
回答1:
Yes, I do have it working with just http. You can check out my site: http://www.pittsburghpartycentral.com/connect.php
回答2:
Yes! I changed my server and the php sdk works perfect in http connection. However, the link which @Charles gave did not work
来源:https://stackoverflow.com/questions/17572508/php-sdk-working-only-in-https-connections