The facebook integration is not working correctly.
1. I have created a facebook app correctly following the documentation
2. The facebook app settings may been seen in the below images
Hi There,
Could you make sure you server support with PHP library "fsockopen", please? this issue I think related with it.
thank you
My Site is hosted with siteground.com and regarding fsockopen(), they having following in their FAQs.
I have just raised a ticket regarding this. Will revert once I will receive their reply. Please DO NOT CLOSE this ticket
The PHP function fsockopen() may not work because of firewall restrictions on the outgoing connections.
In such cases the port required for the outgoing connection should be opened. You can request this by opening a ticket through your Help Desk > Port Opening Request.
If you want to be able to use different PHP settings and PHP versions on a per-folder basis, you can sign up for a hosting account at SiteGround. We offer the best PHP hosting and our support team is ready to assist you with any PHP questions/problems you may have, including opening outgoing connections from non-standard ports.
Hi Mamta,
Can you provide me FTP access, please? So I can check this.
thank you
Hi Mamtha,
Seems the fsockopen doesnt enabled correctly, I check with this code
thesocialindian.in/check_fsockopen.php
<?php
if(!function_exists("fsockopen")) {
echo "Function fsockopen Exists";
}else{
echo 'Function fsockopen no exist';
}
?>
Hello,
I have again contacted siteground hosting support. and they have checked that fsockopen function is enabled.
There reply is as below. And from the url
thesocialindian.in/i.php
you can check that allow_url_fopen On is showing in php config.
Hello Mamta,
I crated a php info file inside your hosting account called i.php that you can access from the following link:
thesocialindian.in/i.php
There you can see that the fsockopen is available "allow_url_fopen On ". I checked the file you are using to check if the function is available and found that your login in the function is wrong. You are echoing "function not exists" when function_exists returns true.
Best Regards,
Simeon Boev
Technical Support Team
Please check again and guide what to do to make fb connect work
Dear Sir,
Siteground guys have replied again confirming that fsockopen is enabled there reply is below
Hello Mamta,
For your convenience I have created the file mentioned in our knowledge base:
thesocialindian.in/fsockopen_sg.php
Indeed fscokopen is enabled on the shared server.
If you need any further assistance don't hesitate to contact us again.
Best Regards,
Teodor Chilov
Technical Support Team
Hi Mamta,
hem.. I think this issue cuased by the FB oAuth Flow, last time they changed the API and oAuth, actually our developer is inspecting this..
For time being you can use the JFBC component, and in Jomsocial page you choose "Use SourceCoast's JFBC" to Yes
earlier, Iwas recieving some other error i just came to know today itself about an hour back and now i forced to redirect all url to
www.domain.com
due to which the error shown google chrome inpect element console changed
Now it is showing error as below
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. joms.jquery-1.8.1.min.js:14
Uncaught SyntaxError: Unexpected token < ajax_1.5.pack.js:1
Jax.processResponse ajax_1.5.pack.js:1
xmlhttp.onreadystatechange ajax_1.5.pack.js:1
May be this information is of any help for you.
JFBC is a paid download, However i do not want to pay for it when jomsocial has fb connect
Hi Mamta,
Where did you get it? and how can I replicate this? i think that is different issue, if you have that issue please create new topic for that.
regarding FB issue, let our developer inspect the FB oAuth flow.
In my opinion FB issue is due to this error.
Steps to replicate this in Google Chrome
1. go to url thesocialindian.in
2. right click and select inspect element, a window in bottom of browser window opens - SELECT CONSOLE FROM the menu of This Window.
3. click on sign in with facebook
4. Sign into facebook in the pop up and click next
5. select i am currently a New User and click next
6. Now New Member Form will be displayed. Your Name and Email will be picked up through facebook and you have to mention a username. Now mention the username and click Create
7. Now the pop-up goes blank
8. And you can see the inspect element window in bottom of the browser where the error is visible.
This error has ocurred due to execution of FB connect script
Well, I am not a techie person, i came to know this just by chance searching the internet and came to know the way we can check any error in execution of any script can be seen through inspect element in google chrome using console option