Yes, that line's okay to a point. $result returns:
array(3) { ["session_key"]=> string(34) "a1a1a1a1a1a1a1a1a1a1a1-111111111" ["uid"]=> string(9) "111111111" ["expires"]=> string(1) "0" }
(*) values altered, obviously.
As you can see, there's no $result['secret'] value though, which is picked up next in the code.
The code gets past this point and then calls:
wordbooker_set_userdata( $onetime_data,$facebook_error, $secret, $session_key);
In here is where things next go wrong. The INSERT query generated fails; debugging the code to get the query it's trying to execute and then executing that query directly into MySQL Query Browser pulls up the problem in my last message. The database schema sets NO NULLs for most of the fields in the table and doesn't have any default values; subsequently, the insert query that's only populating six fields fails. This makes me wonder how the query ever works for anyone, yet clearly it does.