[Plugin: WPBook] Upgraded Wpbook this morning and I cannot post!
-
Caught exception in stream publish for user: (#200) This API call requires a valid app_id.Error code: 0
WPBOOK is returning this error as of this morning when i try to publish. Don’t understand why.
Also my app is not displaying on facebook any longer.
https://www.facebook.com/HairWeGo?sk=app_222823313810was working yesterday
-
@asapreta – can you look in your WordPress database? (via phpmyadmin or similar?)
There should be an option in the wp_options table whose name is wpbook_page_access_token and whose value looks something like:
11757741723|d8025f403c37e2f669ca7f7f-1815418|44032529871|fBSrDxILXxBAlW7fBnBgy3NfaWU
Though of course yours will be different.
That option is set (automatically by WPBook) when you grant the “manage_pages” permission and it is the token which lets WPBook post to a page as a page.
The “check permissions” page is supposed to show you wether that value has been stored or not, but maybe there is an error there?
Just looked back at where you posted the output of “check permissions” and I see that no token has been stored for the page:
You’ve indicated you wish to publish to this page: 100002120851969
WPBook stored an access_token for use as as well.
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.)
Note the missing verb (not “WPBook has stored” or “WPBook has not stored” but just “WPBook stored” – maybe an unclear way of writing it on my part, but the verb “has” or “has not” is supposed to be filled in by the code.)
What this means is that when you have granted permissions, WPBook went to try to get an access token to manage your page but did not get one. It also didn’t get the name of the page, which it should also display.
Are you an admin of the page to which you are trying to post? (In which by you I mean FB userid that you are using when you grant permissions).
I own the two pages, one is my personal and the other is for the blog.
The blog one, which I was publishing the posts from the blog itself, now isn’t showing the posts, only my personal one.I do not have access to the database.
I′ll remove the application and re-grant access and post it for you analysis.
just did it.
First removed the applications from my profile.
Entered WP and checked for permissions.It first only asks for basic info. Granted.
Then I check again and the permissions are not set.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. Your userid is 616582994 You will need to enter that number into the WPBook settings page on your WordPress install. This user_id has granted these permissions: * offline_access - no * read_stream - no * publish_stream - no * manage_pages - no This user has set an access_token for the application to use. You've indicated you wish to publish to this page: 100002120851969 WPBook stored an access_token for use as as well. 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.)
Re-granted:`
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.
Your userid is 616582994
You will need to enter that number into the WPBook settings page on your WordPress install.
This user_id has granted these permissions:
* offline_access – yes
* read_stream – yes
* publish_stream – yes
* manage_pages – yesThis user has set an access_token for the application to use.
You’ve indicated you wish to publish to this page: 100002120851969
WPBook stored an access_token for use as as well.
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.)`
Did all the same for the fanpage (blog page) on facebook:
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. Your userid is 100002120851969 You will need to enter that number into the WPBook settings page on your WordPress install. This user_id has granted these permissions: * offline_access - yes * read_stream - yes * publish_stream - yes * manage_pages - yes This user has set an access_token for the application to use. You've indicated you wish to publish to this page: 100002120851969 WPBook stored an access_token for use as as well. 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.)
Same problem when posting on blog, post.php show this:
No post id returned from Facebook, $fb_response was /n and $fb_page_type was and $wpbook_description was test post #3 and $my_title was test post #3
But even with the error, the post was published on my personal wall but not published on fanpage wall.
As you said, something wrong on the database may be the problem?
What’s happening is that for some reason WPBook is not getting a valid access token for the page with id 100002120851969.
Although the check permissions page says:
WPBook stored an access_token for use as as well.
It should say:
WPBook has stored an access_token for us as PAGENAME as well.
(Note the inclusion of “has” and “PAGENAME” in the correct sentence versus yours).
What this means is that for some reason Facebook has not added an access token for your fanpage wall to your user, even though you have granted manage pages.
The question is why. Have you added the FB application to the FanPage in question? Go to the application’s profile page and click “add to page” and choose the fanpage.
Until we get the right access token stored, WPBook will never be able to publish to that fanpage.
Ah – is this the page you are trying to post to?
https://www.facebook.com/people/Asapreta-Videogames/100002120851969The problem is that is NOT a fan page – it is a personal profile – note how it has “people” in the url.
WPBook does not support posting to multiple individual profiles.
If you want to post to that page, you’ll have to log in to Facebook AS THAT PROFILE, and put that into WPBook as your personal profile ID, and check post to personal wall.
But it you roll back the WALL you will see there posts when WPBook was working.
That time the “application” was called Blog Share by me.
And I already granted access to page for profile 100002120851969 as well.
I′ve done another test.
I′ve removed my facebook id from the WPBook and its place I put the 100002120851969. No post.php errors but no publishing to 100002120851969’s wall. Permissions already granted. (if i try to check I get the page with te posts, inside facebook aplication.
It may be that in the past WPBook accidentally supported posting to two personal profile pages, but it was never my intent.
(Technically the second profile violates Facebook’s terms of service, as individual people’s profiles are supposed to represent actual people).
After you have changed the personal ID, did you regrant permissions? (You need to regrant them because they need to be granted to that ID).
What do you mean when you say “if I try to check I get the page with te posts” – you don’t first get the check permissions page?
The access token has to match the profile ID, and you have to be logged in to Facebook as the user with profile 100002120851969 when you grant permissions to get the right access_token stored.
John…
Yes WPBOOK did allow posting to two profiles but in our case those profiles were two totally separate profiles. <— owned by two different individuals.
Are you saying this violates terms of service?
The FB terms of service say that each “profile” (not page or group or app) must be linked to one real person – you can’t have one profile that represents you as a person and a second one which claims to be you but is really representing your blog.
If it isn’t a human being, with a beating heart, it shouldn’t be a profile, it should be a page of one kind or another.
Not that they really enforce it.
But WPBook is designed with the assumption that there is one “profile” ID, and optionally also a Page ID (which might be a fan page, or a group, and application page), and you can stream posts to either or both.
It does not support posting to two individual profile walls.
Hi! I am setting up a travel blog together with my girlfriend which I am travelling with. Long-time Joomla user but have never used WordPress, I am very happy with what I’ve seen so far!
We are looking for a plugin that post our blog posts to the wall on Facebook walls, and pulls all comments from Facebook into the blog. I can’t see how this should violate any FB terms – we are both alive and breathing, and share the same blog ??
Is it possible to hack WPBook to make it possible to post to and pull from two individual profiles? If not, does anyone know if this is achieveable using Wordbook?
Thanks =D
Having two different individual profiles and posting to both would not violate FB terms of service – it’s the use of a fake individual profile rather than a page to represent something not an actual person that I was referring to.
You could hack WPBook to do this – basically you’d need to store 2 different “access_tokens” for different “page admins” – then you’d need to look at the functions in publish_to_facebook.php, and run the one that posts to $target_admin twice, with the two different profile IDs and associated access_tokens. Each user would also need to grant permissions individually to their FB user id.
You could basically do this by setting one user as the $target_admin (the FB profile listed first in the WPBook settings), going through grant permissions, then finding that access_token in your WordPress options table and storing it with a different key. Then change the target admin to the second person, and go through the process again.
Then edit publish_to_facebook.php, so that it runs the posting to profile wall twice, once with each userid and access token.
Not rocket science, but not trivial either.
Is publishing to multiple individual profiles something lots of people want?
- The topic ‘[Plugin: WPBook] Upgraded Wpbook this morning and I cannot post!’ is closed to new replies.