Viewing 15 replies - 1 through 15 (of 34 total)
  • Thread Starter mikejds

    (@mikejds)

    Had another go tonight but had no joy.

    I’m not getting any error messages or anything so am at a loss what it could be.

    Any help would be appreciated.
    Thanks
    Mike

    Plugin Author John Eckman

    (@johneckman)

    When you go to the “check permissions” link, is the Fanpage to which you are trying to post listed? Does it say permissions have been granted?

    If you go into “edit page” mode on the Fan page, is your application listed?

    Have you added the application to the Fan page as a tab?

    Thread Starter mikejds

    (@mikejds)

    Hi John.
    Thanks for the help.

    When you go to the “check permissions” link, is the Fanpage to which you are trying to post listed?
    Does it say permissions have been granted?

    Yes. This is what I’ve got…

    You’ve indicated you wish to publish to this page: 153157574708737
    This page has granted stream.publish permissions to this app.

    You are also listed as the admin of these pages:
    ?The Silly Sausage (153157574708737), This page has granted stream.publish permissions to this app.

    You can use the page IDs of any of these pages in the WPBook settings to publish to that page’s wall.

    If you go into “edit page” mode on the Fan page, is your application listed?

    Yes its listed.

    Have you added the application to the Fan page as a tab?

    Yes its in the tab and the app. is showing posts fine.

    Any other ideas?
    Thanks
    Mike

    Thread Starter mikejds

    (@mikejds)

    Was keen to get this plugin on my site.
    But I’ve checked and checked again.
    I just can’t get it to work.

    Time to move on I think.
    Too many hours wasted.

    Thread Starter mikejds

    (@mikejds)

    Not giving up just yet….

    Tried yet again.

    This time when I published a post it through up an error.

    Caught exception in actually publishing to page 153157574708737: attachment-href URL is not properly formatted Error code: 100

    What url is it referring to?

    Thanks
    Mike

    Plugin Author John Eckman

    (@johneckman)

    Attachment-href would be the image attached to the post, I think.

    What was the post you were trying to publish? Did it contain images?

    Thread Starter mikejds

    (@mikejds)

    All it said was…
    “this is a test”

    No images.

    Plugin Author John Eckman

    (@johneckman)

    Hmm. I have not seen that particular error message before – a quick google suggests it might be missing the domain part of the post url.

    Anything custom in your blog in terms of what the WordPress settings are for WordPress address (URL) or Site address (URL) in general settings?

    Looking at the urls of posts in your application view, they seem to have an extra slash: https://apps.facebook.com/thesillysausage//uncategorized/test-19/

    Do you have a trailing slash in your canvas callback url in FB settings or your “Facebook canvas URL” in WPBook settings?

    When I try to go to one like this:
    https://www.thesillysausage.co.uk/index/funny-quotes/funny-facebook-status-updates/my-best-friend/

    I get an error: “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

    Plugin Author John Eckman

    (@johneckman)

    Looks like the page is supposed to be:
    https://www.thesillysausage.co.uk/index/category/funny-quotes/funny-facebook-status-updates/

    So maybe there is something about how you are using permalinks?

    WPBook thinks the page should be:

    https://www.thesillysausage.co.uk/index/funny-quotes/funny-facebook-status-updates/my-best-friend/

    Where your blog puts it at:
    https://www.thesillysausage.co.uk/index/category/funny-quotes/funny-facebook-status-updates/

    Something non-standard going on here that must be interfering with how WPBook expects things – sorry.

    Once we get nailed down what’s happening then perhaps we can figure out how to work around it.

    Thread Starter mikejds

    (@mikejds)

    Hi John,

    Do you have a trailing slash in your canvas callback url in FB settings or your “Facebook canvas URL” in WPBook settings?

    I made a mistake there.
    There was a trailing slash in my WPBook settings.
    I’ve now removed it and reposted.
    The error is no longer throwing up. (clever you)
    Unfortunately posts are still not showing on FanPage wall.

    So maybe there is something about how you are using permalinks?
    I do have permalinks set different to the default.
    Custom Structure: /%category%/%postname%/
    (does this look okay?)

    I would really like to keep my permalinks set like this if possible.

    Thanks for your time.
    Mike

    Thread Starter mikejds

    (@mikejds)

    Is that one slash too many again?

    I’m useless at coding.

    Thread Starter mikejds

    (@mikejds)

    Okay….

    For now I’ve changed permalinks back to default.
    (no extra slashes at the end)

    Its still not showing on the FB Page wall.

    Hope this may help though?

    Plugin Author John Eckman

    (@johneckman)

    Still seeing some extra slashes from somewhere – if I click on your application’s home link it goes to:

    https://apps.facebook.com/thesillysausage// – note the double slash at the end there.

    My guess is the setting in WordPress -> Settings -> WPBook:

    Facebook Canvas Page URL, NOT INCLUDING “https://apps.facebook.com/”

    You should have just thesillysausage in that box.

    But none of that explains why you can’t publish to your fan page wall.

    Here’s a test for all the permissions. Go to https://developers.facebook.com/docs/reference/rest/stream.publish and find the “Test Console” at the bottom of the page. (Best to do this logged into Facebook as you).

    Choose your FB application from the dropdown for “Application”

    Enter “testing in console” in the “message” box – nothing for attachments or action_links for now.

    Put your pageID (153157574708737) as the “target_id” and leave the “uid” field blank.

    Hit the “Call method” button.

    This should either give you a result – a “stream id” (and a test post on the wall of your fan page) or an error – let me know what that error is.

    If it works in the test console and not in production we may have a FB bug. (Though I can’t imagine since it works well for others – more likely we have some other problem).

    Is it possible that your web hosting server is unable to reach Facebook? Some hosting providers block outbound traffic from the web server.

    Thread Starter mikejds

    (@mikejds)

    It threw this error.

    { “error_code”: 200, “error_msg”: “The user hasn’t authorized the application to perform this action”, “request_args”: [ { “key”: “target_id”, “value”: “153157574708737” }, { “key”: “method”, “value”: “stream.publish” }, { “key”: “access_token”, “value”: “2227470867|2.q9KAyYI4m4A7yxzIhYMfzg__.3600.1284670800-1315132473|J5lOogHI2GstLeDFW5IFkjFgziQ” }, { “key”: “format”, “value”: “json” } ] }

    Thread Starter mikejds

    (@mikejds)

    BTW I also remove the / from my Facebook Canvas Page URL.

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘[Plugin: WPBook] Won't post to facebook fanpage wall’ is closed to new replies.