around this issue According to error in your logs as you mentioned in the comments, you need to set safe_mode = Off and remove the line about open_base_dir in your php.ini file. If you can't access to your php.ini file, then ask your hosting provider to do that.
simple facebook graph api call not working on live server but working on localhost
Hope that helps well after doing lots of search i got to know my server does not has allow_url_fopen = On so i edited my php.ini file.. now it is working perfect... the file_get_contents method requires allow_url_fopen = On ....
form submission using JQuery Ajax not working in server but working in localhost codeigniter