Plugin Contributor
B.
(@bandonrandon)
WE have had some problems with users who are using WordPress less than 3.1. We are working on fixing the problem.
I also noticed a few errors in the screenshots.
1) on your stream/wall settings you are trying to import from the wall but you aren’t posting from the wall. You must first enable posting to the wall and grant permissions before posting.
2) On your app tab settings you have the full url of your site you just need the ‘?tab=true’ part.
Not sure either of these small problems are causing the 500 error though.
What do you server logs say?
I have seen (thanks to another user on the forum) a user with WordPress 3.0.1 get an out of memory error with WPBook 2.1 or later.
I have not been able to isolate the issue – it may be with the Facebook SDK itself, or something in the OAuth flow.
Upgrading to WordPress 3.1 fixed the issue.
Do you have access to your server’s PHP logs? Do you see any errors corresponding to the times when your site was showing a 500 Internal Server Error?
I assume the app_id and secret are actually filled out in the required settings but not shown in the screenshot?
1) on your stream/wall settings you are trying to import from the wall but you aren’t posting from the wall. You must first enable posting to the wall and grant permissions before posting.
Oh, ok. I tried to check for permissions but when I do i still get the 500 Internal Server error.
“2) On your app tab settings you have the full url of your site you just need the ‘?tab=true’ part.”
Ah, I don’t know why it was doing that. I pasted that part from the installation guide and it just automatically put my site URL in front of it.
“Do you have access to your server’s PHP logs? Do you see any errors corresponding to the times when your site was showing a 500 Internal Server Error? ”
I should have access to them, but I don’t where to find them. Can you give me a hint as to where they’d be in my control panel?
“I assume the app_id and secret are actually filled out in the required settings but not shown in the screenshot? “
Correct.
Weird, i just updated to wordpress 3.1. and installed that latest edition of WPBOOK and now everything seems to be working fine…for now.
EDIT: Spoke too soon. Now I’m getting this error when i make posts.
No post id returned from Facebook, $fb_response was /n and $fb_page_type was and $wpbook_description was Directed by Cooley. and $my_title was @FreddieGibbs ft. D-Edge – How I Feel [Video]
So what does your “check permissions” screen show? Have you regranted permissions since upgrading?
Yes, i’ve tried regranting permissions about three times since i reinstalled everything. This is the screen i have in my WPBook settings:
http://i53.tinypic.com/idbnep.jpg
And here’s what I get on Facebook when i check for permissions:
http://i56.tinypic.com/14mw6xg.jpg
@macksumo This says you are trying to publish to a page with ID 53206490, but that looks like it’s an individual profile:
https://graph.facebook.com/53206490
You cannot list an individual profile as a page.
Instead, you’ll need to use that individual profile as the profile ID, save your WPBook settings, then regrant permissions for that individual profile.
Although profiles and pages look alike, they need to be treated differently in the Facebook API as they have different permissions and capabilities.
Oh, just realized you have the same id in both places.
You should be putting 53206490 as your Profile ID, and leaving the second box for PageID blank.
Only check the checkbox for publishing to YOUR facebook wall, leave the second one next to PageID unchecked
Ahhhhh, I get it now, thanks. If I wanted to also post updates directly to the wall of the application page, how would i do that?
You would find the ID of your application, put that in the spot where it says PageID, and then regrant permissions – making sure WPBook now shows “manage pages” permission as yes, and says it “has” stored an access token to post as the page name.
Ok, I did all that. And now when i check all my permissions I’m getting the “Yes”. But when i make WordPress posts i still get the error message i had earlier.
No post id returned from Facebook, $fb_response was /n and $fb_page_type was and $wpbook_description was and $my_title was @chiddybang – Twitter Freestyle (Live @SXSW) [Video]
And here’s what my Grant Permissions page says now:
http://i53.tinypic.com/2rg2c7c.jpg
@macksumo So are you trying to publish to your personal wall, your Application wall, or both?
Do you have “show errors posting to Facebook stream” enabled in your WPBook settings?
Have you entered 53206490 in the profile ID and 186156504760753 in the PageID fields?
Have you tried a post which has some content in it beyond the video? (Something with a text content?)
Can you install the development version from http://wordpress.org/extend/plugins/wpbook/download/ (at bottom of the list)?
That has more debugging turned on that might help us trace what’s going on.
I just enabled the show errors box, and made a few test posts that don’t include videos. I didn’t get an error message after posting them, and they’re showing up in the app but still not on my Application Page’s wall.
And yes i’ve entered those two IDs in their correct spots. I’ll try downloading the development version in a few and see if that changes anything.
The development version (probably) won’t change anything, but if you enable debugging it will put a wpbook_pub_debug.txt file in your wpbook directory, which will contain more info about the steps it is trying to take and should help figure out where it is failing.
It basically just lets me see each step in the process of preparing the post, trying each access token, etc.