{"id":6788,"date":"2014-04-23T04:02:24","date_gmt":"2014-04-23T04:02:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/facebook-connect-for-drupal-7-collection-of-common-programming-errors\/"},"modified":"2014-04-23T04:02:24","modified_gmt":"2014-04-23T04:02:24","slug":"facebook-connect-for-drupal-7-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/facebook-connect-for-drupal-7-collection-of-common-programming-errors\/","title":{"rendered":"Facebook Connect for Drupal 7-Collection of common programming errors"},"content":{"rendered":"<p>StackOverflow users thought this topic was best posted here, and so I willingly do so.<\/p>\n<p>First of all: the readme.txt of this module is seriously out-dated! It really needs a review concerning the FB updates.<\/p>\n<p>Now, the real problem: I have installed the module, inserted my appID and all that, but when in \/admin\/config\/people\/fbconnect I click on &#8216;appearance&#8217; I get this fatal error:<\/p>\n<pre><code>Fatal error: Call to a member function getUser() on a non-object in \/customers\/denotenbalkers.be\/denotenbalkers.be\/httpd.www\/sites\/all\/modules\/fbconnect\/fbconnect.module on line 421\n<\/code><\/pre>\n<p>When I click on &#8216;app settings&#8217; it shows me the notice: &#8220;Ensure that you entered valid api keys.&#8221; but those keys ARE valid. Maybe I&#8217;m missing something from the readme? Ex.:<\/p>\n<p><strong>5. Enter the Connect URL on Connect settings tab (e.g. copy value from admin\/settings\/fbconnect field &#8220;Connect url&#8221;).<\/strong> There is no such thing as a connect settings tab!<\/p>\n<p><strong>6. Add your server to the Server Whitelist on Advanced settings tab on Facebook or disable Session Secret Whitelist Exception.<\/strong> What am I supposed to add here? Because only the url doesn&#8217;t work. I suppose an IP-address but I wouldn&#8217;t know which one.<\/p>\n<p>I&#8217;ve done all the rest, so I&#8217;m guessing that that&#8217;s the problem.<\/p>\n<p><strong>EDIT \/ SOLUTION:<\/strong> The problem was that I followed the readme that was on Facebook Connect&#8217;s project page. The information in there is OUT-DATED and insufficient. The readme that comes with the module itself is the one you should read!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>StackOverflow users thought this topic was best posted here, and so I willingly do so. First of all: the readme.txt of this module is seriously out-dated! It really needs a review concerning the FB updates. Now, the real problem: I have installed the module, inserted my appID and all that, but when in \/admin\/config\/people\/fbconnect I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6788","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6788"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6788\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}