[Plugin: WPBook] Posting works, comments don't
-
I installed WPBook following all instructions to the letter, and the posting of my blog articles immediately worked nicely. What doesn’t work, however, is the integration of comments made on facebook into my blog. I went over the instructions like 10 times, checking everything was fine, but it still doesn’t work.
I have no idea what to do next. Any ideas?
-
Or some other plugin, which also could be adding filters to the comments which are not applied when you have that line commented out.
Might be worth setting up a new vanilla WordPress 3.0.1 install and trying WPBook with that (with a corresponding new FB app)- that way you wouldn’t have to go through the trouble of disabling all plugins, reverting to default theme, etc on your main blog.
I do believe I’ve imported comments from users with umlaut’s but I could be wrong.
Hi John,
it was another plugin. I’ve the ‘SI CAPTCHA Anti-Spam’-plugin which intercepts the comments at preprocess_comments. As your plugin doesn’t give the captcha-code with it (because it obviously can’t), that plugin is blocking the comment-insertion.
So I have two options:
1. Disable SI CAPTCHA which would result in flooding my blog with spam
2. Comment out that line in your plugin which works fine for meI chose the second option :o)
The umlauts are working fine for me. They are just shown wrong in the debug-file.
Aha. Good to know.
I wonder if SI CAPTCHA offers some kind of filter to temporarily suspend captchas for comments being submitted by WPBook?
I might be able to remove the filter they’ve added to preprocess comments or something – but for now I guess you’ve got a workaround.
Same problem here. I suppose it’s something wrong with cron coz it stops at some point. Here is my debug file:
2010-09-15 18:40:20 : Cron Running 2010-09-15 18:40:20 : Facebook object: Facebook Object ( [api_client] => FacebookRestClient Object ( [secret] => ... [session_key] => ... [api_key] => ... [friends_list] => [user] => 100000013474532 [added] => [is_user] => [canvas_user] => [batch_mode] => 0 [batch_queue:private] => [pending_batch:private] => [pending_batch_is_read_only:private] => [call_as_apikey:private] => [use_curl_if_available:private] => 1 [format:private] => [using_session_secret:private] => [rawData:private] => [last_call_id] => 0 [server_addr] => https://api.facebook.com/restserver.php [photo_server_addr] => https://api-photo.facebook.com/restserver.php [read_server_addr] => https://api-read.facebook.com/restserver.php [expires] => 0 ) [api_key] => e9a008965dc5d4a95b168116b63becf1 [secret] => aea6e7438fddd246b69c68feab098820 [generate_session_secret] => [session_expires] => [fb_params] => Array ( ) [user] => [access_token] => [profile_user] => [canvas_user] => [ext_perms] => Array ( ) [base_domain:protected] => ) 2010-09-15 18:40:20 : Getting posts, SQL was Select ID FROM wp_posts WHERE post_date BETWEEN '2010-09-08 18:40:20' AND '2010-09-15 18:40:20' 2010-09-15 18:40:20 : How many posts to consider? 144
@zewlak – look like there is no user set here.
Have you granted permissions for your FB User ID, generated an infinite session key, and entered that into the appropriate place in WPBook settings?
FYI – by posting unexcerpted debug here you have published your API key and secret – not a big deal, but you might want to generate a new secret at FB for your app
yep, I did it.
I’m using: ‘Publish new posts to the Wall of this Fan Page, Application Profile Page, or Group: PageID’ option.
Page ID and Infinite Session Key are set
Just to be sure we’re clear – you are using the “publish to the wall of this page” option, but you have also granted permissions for your ProfileID and provided your facebook profile ID – this is required even if you are not publishing to your personal wall.
If you look at wpbook_cron.php, lines 60-69, they are this:
$facebook = new Facebook($api_key, $secret); $facebook->api_client->user = $fb_user; $facebook->api_client->session_key = $session_key; $facebook->api_client->expires = 0; if(DEBUG) { $fp = fopen($debug_file, 'a'); $debug_string=date("Y-m-d H:i:s",time())." : Facebook object: ". print_r($facebook,true) ." \n"; fwrite($fp, $debug_string); }
The Facebook object in your debug code has no user – as though there was no FB profile ID in the WPBook profile.
https://ebania.pl/debug.jpg it’s all set ??
Can you send me (eckman.john at gmail.com) the full debug.txt file?
Somehow it seems like that
$facebook->api_client->user = $fb_user;
call is not working.Are you certain that permissions have been granted for that user?
Are you certain your userid is correct?
What kind of wall is it you are posting too? (Fan page, app profile page, group)
ohh. Look at it https://ebania.pl/debug.jpg
permissions have NOT been granted for a page.. I click on Grant stream.publish for this page. i go to the app with `Infinite Session Key
Your infinite session key is 0584a7c01090b9aa812591ea-100000013474532
Please copy this to the appropriate location in WPBook settings` on the top, but when I revisit Permissions Page there is still:
This page has NOT granted stream.publish permissions to this app (OR this is an application profile page).
?
Something changed.
2010-09-15 19:37:30 : Getting posts, SQL was Select ID FROM wp_posts WHERE post_date BETWEEN '2010-09-08 19:37:30' AND '2010-09-15 19:37:30' 2010-09-15 19:37:30 : How many posts to consider? 151 2010-09-15 19:37:30 : How many meta_posts found? 2 2010-09-15 19:37:30 : Examining a meta_post, post ID is 1091910268, meta key = _wpbook_user_stream_id 2010-09-15 19:37:30 : FBcomments, fbsql is SELECT time,text,fromid,xid,post_id FROM comment WHERE post_id='100000013474532_160942103916238' AND time > '0' ORDER BY time ASC 2010-09-15 19:37:31 : FBcommentslist is 2010-09-15 19:37:31 : There were no comments for post 100000013474532_160942103916238 2010-09-15 19:37:31 : Examining a meta_post, post ID is 1091910268, meta key = _wpbook_user_stream_time 2010-09-15 19:37:31 : Skipping meta key _wpbook_user_stream_time 2010-09-15 19:37:31 : How many meta_posts found? 2 2010-09-15 19:37:31 : Examining a meta_post, post ID is 1091910271, meta key = _wpbook_page_stream_id 2010-09-15 19:37:31 : FBcomments, fbsql is SELECT time,text,fromid,xid,post_id FROM comment WHERE post_id='149519635080515_151314928234319' AND time > '0' ORDER BY time ASC 2010-09-15 19:37:31 : FBcommentslist is 2010-09-15 19:37:31 : There were no comments for post 149519635080515_151314928234319 2010-09-15 19:37:31 : Examining a meta_post, post ID is 1091910271, meta key = _wpbook_page_stream_time 2010-09-15 19:37:31 : Skipping meta key _wpbook_page_stream_time
I see something about no comments but there are some. https://www.facebook.com/apps/application.php?id=149519635080515
I changed nothing but it works now. Thank you for your help! Now I’ll try to get author’s avatar.
- The topic ‘[Plugin: WPBook] Posting works, comments don't’ is closed to new replies.