What does your check permissions page say? (WordPress->Settings->WPBook, click on “check permissions” link).
Note the “no access token” above – this means that the appropriate permissions have not been granted.
Looks like your FB Profile ID and page ID are correct
Hi John,
Thanks for replying so quickly.
I am officially confused… Checking the permissions takes me to my app page…which has collected and is correctly displaying my latest posts:
http://apps.facebook.com/enticingthelight/
What’s not happening is those posts being displayed in my FB page. Either I’m not understanding what WPBook does, or I’ve broken something somewhere between my FB app and my page.
Am I correct in thinking that each new blog post should appear as a wall post on my FB Page…?
Thanks for your help, and for providing this plugin for free to confused people like me 🙂
Checking permissions should not just take you to your blog page, if done correctly.
Your “check permissions” page lives here:
http://apps.facebook.com/enticingthelight/?is_permissions=1&wp_user=1
(There’s a link to it inside the WPBook settings page inside Facebook).
Launching that page tells me:
This page is where you can check and grant extended permissions, which enable WPBook to publish to your personal wall and/or to the walls of fan pages.
The Facebook profile ID you are currently logged in to Facebook as is 1825518. You have defined 32699 as your Facebook user id in WPBook Settings.
Your Facebook Profile ID must match the ID with which you are logged in to Facebook, or else an access token will not be stored and publishing to Facebook will fail. Please update the “YOUR Facebook Profile ID” setting in WPBook settings to match the userid shown above.
FB profile 1825518 has granted these permissions:
offline_access – no
read_stream – no
publish_stream – no
manage_pages – no
Error: No access token has been stored for this user -probably due to a misconfiguration. Check to see that the ProfileID with which you are logged in to Facebook matches the one set in WPBook settings, as listed above
You’ve indicated you wish to publish to this page: 210026772342919
To correct any of these, Grant or re-grant permissions for your userid. (This is required if you intend to publish to your personal wall OR any fan pages.)
Though it will be different for you, because you will be logged into FB with a different ID.
Please visit the Check Permissions page (http://apps.facebook.com/enticingthelight/?is_permissions=1&wp_user=1) as described in the directions and tell us what you see there.
Aha! Thanks, John. There were a bunch on NO permissions there, which I’ve now set to YES and my permissions page now looks like this:
This page is where you can check and grant extended permissions, which enable WPBook to publish to your personal wall and/or to the walls of fan pages.
The Facebook profile ID you are currently logged in to Facebook as is 32699. You have defined 32699 as your Facebook user id in WPBook Settings.
FB profile 32699 has granted these permissions:
* offline_access – yes
* read_stream – yes
* publish_stream – yes
* manage_pages – yes
An access token for this user has been stored.
You’ve indicated you wish to publish to this page: 210026772342919
An access token corresponding to this page has been stored.
I suspect all is well now. I have a new article going live tomorrow morning and will wait to see if it shows up on my FB page wall (I’m too busy to re-post an already published article right now).
I’ll return to this thread an post the outcome 🙂
Thanks again, John!
Nope, didn’t work 🙁
What else should I be checking?
Well, the permissions above do seem correct.
When you say it didn’t work, what happened? Just no post appeared?
Are you publishing to your personal profile, or just the fan page http://www.facebook.com/pages/Enticing-the-Light/210026772342919
I assume you mean that this post – http://apps.facebook.com/enticingthelight/2011/04/05/we-welcome-two-new-affiliate-stores-ebay-and-digitalrev/ – didn’t post to the Facebook Wall of the page listed above?
Do you have debugging enabled in WPBook settings? If so, did you get a wpbook_pub_debug.txt file created in your wpbook folder?
If you momentarily unpublish the post (set it to draft, save the post, then re-publish it) do you see an error?
Hi John,
I am publishing to the fan page you URL’d and that is indeed the post that didn’t show up on the page wall.
I do have debugging enabled and all I got were two lines:
2011-04-05 04:16:02 : publish_to_facebook running, target_admin is 32699
2011-04-05 04:16:02 : Post ID is 9306
Then I reset the post to draft and republished it again, and nothing happened on the wall. The debug file says the same as before:
2011-04-05 23:01:24 : publish_to_facebook running, target_admin is 32699
2011-04-05 23:01:24 : Post ID is 9306
:-/
@miserere
Hmm. You’ve got me stumped.
Do you see the “Publish this post to Facebook” section of your post edit screen? I assume that is set to “yes”?
The only thing I can imagine is that when publish_to_facebook.php gets to this section it somehow fails:
$publish_meta = get_post_meta($my_post->ID,'wpbook_fb_publish',true);
if(($publish_meta == 'no')) { // user chose not to post this one
return;
}
That’s lines 84-87 in publish_to_facebook.php and it is designed to check to see whether the user has elected “no” on the “Publish to Facebook” option in their post-edit screen.
Do you have access to your WordPress database? Can you look in the wp_postmeta table for postid 9306 and a “wpbook_fb_publish” key – is that set to “no”?
Do you write your posts in something else, like a desktop client?
Looks like never gets to the next debug statement at line 96, so it has to either be a problem with the metadata or a problem with the next section, which just sets the permalink and author info – lines 88-94.
IT WORKED!
Doh! The “Publish this post to Facebook” option wasn’t ticked!!! I thought I had set it up so that every post was automatically selected! I hadn’t even considered checking for that…
But thanks, John, the big hurdle here were the permissions on FB, which I hadn’t been able to figure out from the plugin instructions.
I appreciate the time you’ve taken to help me out, and hopefully my ineptness will serve to help others 🙂