A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 1385
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 690
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: controllers/simple_html_dom.php
Line Number: 697
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4
Filename: controllers/simple_html_dom.php
Line Number: 690
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 8
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: controllers/simple_html_dom.php
Line Number: 697
Backtrace:
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 8
Function: find
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view
File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once
Check below working example Login with Facebook:
<html> <title>Facebook Login</title> <body> <div class="login-with-fb"> <a href="#" id="call_facebook_login">Continue with Facebook</a> </div> <div id="fb-root"></div> <script> window.fbAsyncInit = function () { FB.init ({ appId: 'XXXX', status: true, cookie: true, xfbml: true }); }; (function () { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); /** Fb Login **/ $(document).on("click", "#call_facebook_login", function () { Login(); }); function Login() { FB.login(function (response) { if (response.authResponse) { getUserInfo(); } else { console.log('User cancelled login or did not fully authorize.'); } }, {scope: 'public_profile ,email'}); } function getUserInfo() { FB.api('/me', {fields: "id,picture,email,first_name,gender,last_name,name"}, function (response) { console.log(response); var pic = response.picture; var first_name = response.first_name; var last_name = response.last_name; var gender = response.gender; var fb_id = response.id; var email = response.email; var profile_pic = pic.data.url; var url = "URL of your REST API"; $.ajax({ type: "POST", url: url, data: { first_name: first_name, last_name: last_name, gender: gender, fb_id: fb_id, email: email, profile_pic: profile_pic }, dataType: "json", success: function (data) { } }); }); } /** End of FB Login **/ </script> </body> </html