php - Facebook Connect: Error when clicking the Facebook Connect button -


I get this error when I click the Facebook Connect button:

  API Error Code: 100 API Error Description: Invalid Parameter Error Message: Not Owned by Next Application  

I'm also not sure how to do this, but for Facebook connectivity All the documents have been read and come up with:

  & lt; ? Php date_default_timezone_set ("America / Toronto"); Define ('FACEBOOK_APP_ID', '##################'); Define ('FACEBOOK_SECRET', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' '); Function get_facebook_cookie ($ app_id, $ application_secret) {if (!! ($! COOKIE ['FBS_'. $ APIID]) blank return; $ Args = array (); Parse_str (trim ($ _cookie ['fbs_'. $ App_id], '\\' '), $ args; Ksort ($ args); $ Payload = ''; Foreach ($ args = & gt; $ value as dollar) {If ($ key! = 'Sig') {$ payload. = $ Key '='. $ Value;}} if (MD5 ($ payload. $ Application_secret)! = $ Args ['sig']) {return tap;} $ $ IAG;} $ cookie = get_facebook_cookie (FACEBOOK_APP_ID, FACEBOOK_SECRET) ;; & Gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: fb = "http: /www.facebook.com/2008/fbml"> & Lt; Head> gt; & Lt ;! - JQUERY INCLUDED - & gt; Script src = "js / jquery-1.4.2.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt ;! - Include Facebook - & gt; & Lt; Script src = "http://static.ak.connect.facebook.com/js/api_lib/v0.4/fileloader.jspp/n_US" type "" text / javascript "> gt; & lt; / scripts & gt; ; & Lt; script type = "text / javascript" & gt; & lt ;! - $ (document). Load (function () {}); FB.init ("XXXXXXXXXXXXXXXXXXXXXXx  

"," Xd_receiver.htm "); FB.Event.subscribe ('auth.login', function (feedback) {window.location.reload ();});

  function facebook_onlogin () {FB.getLoginStatus (function) {If (response.session) {// log in and connected user, someone you know Fb_login.hide ();} else {// no user session is available, no one knows you}})}} // - - gt; & lt; / scripts & gt; & lt; / head & gt; & Lt; body & gt; div id = "fb_login" & gt; & lt; fb: login-button onlogin = "facebook_onlogin ();" V = "2"> Sign in with Facebook & lt ; / Fb: Login-Button & gt; & lt; / div & gt; & lt ;? php $ user = json_decode (file_get_contents ('https://graph.facebook.com/me?access_token='. $ Cookie ['access_token'])) - & gt; Id; ? & Gt; & Lt; / Body & gt; & Lt; / Html & gt;  

How can I work on Earth?

Thank you!

This error looks like it is trying to say that your connect url is from that location Does not match which has page.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -