WordPress.org

Forums

Facebook
Post to author timeline authentication (73 posts)

  1. psychesmartautismtm
    Member
    Posted 2 years ago #

    i am facing an authentication problem. I followed instructions to allow posting from wordpress to author timeline on facebook. I created the open graph action, then created a post on wordpress and went back to click submit on open graph action. I could not do it because I am not authenticated and therefore facebook is not recognizing the post as coming from me. so how do i authenticate myself

    http://wordpress.org/extend/plugins/facebook/

  2. mattkelly
    Member
    Posted 2 years ago #

    In your WordPress admin dashboard, you should see a yellow admin notice prompting you to authenticate with Facebook. Click the link.

    Do you see that?

  3. psychesmartautismtm
    Member
    Posted 2 years ago #

    no, that is where my problem is. i refreshed my wp dashboard several times, then repeated the process alltogether, and i still cant see anything prompting me to authenticate with facebook

  4. krowland08
    Member
    Posted 2 years ago #

    I created a NON-admin user on one of my blogs, and switched to that user and in fact I was then able to authenticate. And the app showed up in my Facebook app list.

    And when I created a new post, the FB box was there, I entered some text, published the post and

    IT STILL DOES NOT GO TO MY FACEBOOK TIMELINE!

    I switched to another blog. Added the same non-admin user to the blog (all within multi-site) and it did not ask to authenticate with the new app on the blog. I've created 3 different apps on FB for the three different blogs, two have authenticated, NONE will post yet.

    Will I have to be NON-ADMIN to ever get this to post?
    Can't admins post to their FB timeline?

    Sometimes it's easier to been logged in as admin when doing blog work on a single author blog.

    What else should I try?

  5. psychesmartautismtm
    Member
    Posted 2 years ago #

    Someone else on another thread is saying that the problem occurs when you already have facebook plugins in your blog. he says, you can only run one facebook plugin at a time. so you have to uninstall any related plugins from third parties to get authenticated by Facebook official plugin. I have not tried it yet. in fact, i am not sure i want to replace working plugins with questionable one.

  6. BaldEmotions
    Member
    Posted 2 years ago #

    I did deactivate my other social apps using FB. But then I get the api error after clicking the link.

  7. sugarpopboutique
    Member
    Posted 2 years ago #

    I click on the "Publish to author's Timeline" option and a pop-up window telling me how to create the action/type pops up. I follow all the instructions, making sure to save the Facebook page with all the check marks, creating a new post on my blog (which shows up in my facebook timeline immediately).

    However, when I click on the "submit" button in Facebook as indicated, I get the error message stating I have to "publish at least one action to your Timeline using this action type". When I go back and visit WordPress Facebook plugin page, the check mark on the "Publish to author's Timeline" is gone, even though I saved the page.

    And I never see any notification in WordPress of any kind asking me to authenticate. HELP? :)

  8. emmarhoades22
    Member
    Posted 2 years ago #

    sugarpopboutique - I have the EXACT same problem as you! I'll have to keep checking to see what the issue is.

  9. sugarpopboutique
    Member
    Posted 2 years ago #

    I normally search the web until I resolve the issue myself, but this one is a bit tricky lol... especially since they just released this Facebook for WordPress did they not? Ehhh... I'm still trying! Will update if I find anything helpful.

  10. Igloozion
    Member
    Posted 2 years ago #

    This. Is. So. Frustrating.

    Has anyone figured out the problem?

    I can log in as two different WordPress users (each having their own Facebook accounts). Both are admins of the Facebook Page I set up to use for my website, and when posting to WP from either account, the post shows up on the FB Page (and if I mention any other page, it posts there too - as the User, not the Page).

    It seems to work for pages easily, but the users cannot post it to their own Facebook accounts! Followed the instructions to the T and I get the same

    publish at least one action to your Timeline using this action type
    .

    I guess I want to have each user that makes a post to be able to have their posts on their own timelines, and I want every post to show up on the FB Page.

    Or is it not supposed to function like this?

  11. 256studio
    Member
    Posted 2 years ago #

    I had a few simple issue that happen, but what i have seen it was Facebook fault due to them upgrading there site and slow response from my fan page loading half the time. I just redid the plugin reinstall and waited till facebook got there stuff together. Only issue i have is that this plugin post comments on my pages.. grrr...
    256studio

  12. Sunny Kinger
    Member
    Posted 2 years ago #

    anyone found solution for this problem

  13. gayedicon
    Member
    Posted 2 years ago #

    I got the same problem, I can't find the authentication message on WP dashboard.

  14. UmbralEchoes
    Member
    Posted 2 years ago #

    I was having the same problem. I got past the "publish at least one action to your Timeline" error by going to the command line in Linux and copying and pasting the publish code that shows up under "Get Code" for Action Types -- I made sure to substitute my app ID for /me in the URL. I did get a response back, and Facebook no longer gave me the "publish at least one action to your Timeline" error.

    However, posts still do not go to my Facebook wall (not even the one that I manually posted using curl). I have never been asked to authenticate with Facebook from my WordPress blog, as the documentation indicates I would be.

    Possible complicating factor: I had Wordbooker installed but deactivated. Thinking it might still be interfering, I deleted it, then deactivated and deleted the Facebook plugin, and reinstalled it. I'm still having the same trouble though -- posts are not going to my wall even though I checked the option for them to do so and saved the options. I refresh that page and the option is still checked. When I make a new test post, it does not go to my Timeline, and that option is unchecked. When I check it again, it pops up https://developers.facebook.com/wordpress/#author-og-setup.

    Maybe I need to wait for the Publish action to be approved and no longer "pending"? I got the impression from the documentation that the post would go to your wall regardless of the approval status though.

  15. UmbralEchoes
    Member
    Posted 2 years ago #

    Hmm, as a follow-up, I went to my Timeline and then clicked Activity Log. The top item on that was my post to my blog, set to Allowed on Timeline. The time on it corresponds to the post that I made manually via curl on the command line. However, it is still not actually visible on my timeline.

    I also tried creating another admin user. When I logged in as that user, it did ask me to authenticate with Facebook. I did so, and created a new post as that user, and it did not show up in my timeline or my Activity Log.

    As further information, I host my blog through BlueHost, in case there are any known issues with that host.

  16. UmbralEchoes
    Member
    Posted 2 years ago #

    Well, sorry for spam posting, but it seems that manually-entered curl post did come through to my "Activity" section (I was expecting it to come in as a status update, I guess).

    This makes me think that:

    1. The manual curl method worked as it was supposed to, but it just put the post somewhere I wasn't expecting, and...

    2. There is something wrong with calling curl through PHP. I have successfully used curl on my host before, so maybe it's just that Facebook is blocking it for some reason? In any case, the plugin code should be able to detect curl errors and report on them if anything goes wrong.

  17. UmbralEchoes
    Member
    Posted 2 years ago #

    Digging into the code further, I found this in fb-social-publisher.php starting at line 334:

    try {
    		$publish_result = $facebook->api('/me/' . $options["app_namespace"] . ':publish', 'POST', array('message' => $author_message, 'article' => get_permalink($post_id)));
    
    		update_post_meta($post_id, 'fb_author_post_id', sanitize_text_field($publish_result['id']));
    
    	}
    	catch (FacebookApiException $e) {
    		//Unset the option to publish to an author's Timeline, since the likely failure is because the admin didn't set up the proper OG action and object in their App Settings
    		//if it's a token issue, it's because the Author hasn't auth'd the WP site yet, so don't unset the option (since that will turn it off for all authors)
    		if ($e->getType() != 'OAuthException') {
    			$options['social_publisher']['publish_to_authors_facebook_timeline'] = false;
    
    			update_option( 'fb_options', $options );
    		}
    	}

    I would consider myself to be sub-novice in Facebook API programming, but is the /me supposed to be replaced with a user ID or something? Or is that just referring to whatever user is currently logged on in the browser session?

    Regardless, that error handling is pretty bad -- it just catches the exception and silently turns that option off, with no feedback that anything failed, nor any details as to what failed. In fact, the code seems to be littered with try/catch blocks that do nothing when catching an exception. I would add some error handling myself, but I've never programmed a WordPress plugin before and quick Googling didn't show any handy "show this error in the admin header section" sort of function.

    With the lack of error handling, this really isn't version 1.0 of the plugin, it's really more like version 0.1.

  18. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    "Regardless, that error handling is pretty bad -- it just catches the exception and silently turns that option off, with no feedback that anything failed, nor any details as to what failed."

    Unfortunately we had to remove error logging as part of VIP submission. We're pushing a new version tomorrow that outputs errors once a post/page is submitted, though.

  19. mayhem1969
    Member
    Posted 2 years ago #

    Same problem. No yellow authenticate bar.

  20. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    UmbralEchoes:
    "Regardless, that error handling is pretty bad -- it just catches the exception and silently turns that option off, with no feedback that anything failed, nor any details as to what failed. In fact, the code seems to be littered with try/catch blocks that do nothing when catching an exception. I would add some error handling myself, but I've never programmed a WordPress plugin before and quick Googling didn't show any handy "show this error in the admin header section" sort of function.

    With the lack of error handling, this really isn't version 1.0 of the plugin, it's really more like version 0.1."

    Download 1.0.1-- we're no longer just swallowing the errors.

    /me/ just queries the currently active user (based on access token passed)

    Can you let me know what you get when you try to publish something, now? An admin status message should be set once the post/page is published.

    psychesmartautismtm:
    Are you still seeing this issue in 1.0.1? Thanks

  21. psychesmartautismtm
    Member
    Posted 2 years ago #

    thanks Matt for trying to resolve this problem. Unfortunately, i just updated the plugin and checked "publish to author's timeline" only to enter the same loop as in previous version. i.e. open graph won't let me submit a publish action and wordpress won't show an authentication prompt. note: if it matters I use wordpress.org platform from within my website.

  22. mayhem1969
    Member
    Posted 2 years ago #

    I get the following error message when trying to post new post.

    Error: {"message":"Unknown path components: /kyaccinfo:publish","type":"OAuthException"}

    No yellow admin status message. First post on timeline says "auto draft". Second post actually posted to Facebook timeline, but when I go to submit, I get the same "must publish at least one action..."

    No yellow status message for authentication, but got a message saying post did post to Facebook timeline, but after error message above.

  23. Igloozion
    Member
    Posted 2 years ago #

    Same error as Mayhem1969

    Failed posting to your Facebook Timeline. Error: {"message":"Unknown path components: /eestudentprojects:publish","type":"OAuthException"}

    Still posts to the Facebook Page alright, but not to the Author's Facebook Timeline.

  24. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    psychesmartautismtm: the "Social Publishing" checkbox is enabled, and you've saved the settings, right?

    Can you go to https://www.facebook.com/settings/?tab=privacy&ref=mb -> "Ads, Apps, and Websites" and see if you've authenticated your app in the past? If so, try removing it and see if that fixes the problem (of the yellow bar not appearing).

    mayhem1969, Igloozion: thanks, we're looking into it.

  25. Igloozion
    Member
    Posted 2 years ago #

    Just wanted to post my process and provide screenshots:
    FB Error.jpg

  26. cityeyes
    Member
    Posted 2 years ago #

    Gonna post this in a different thread because it seems to be a different problem.

  27. psychesmartautismtm
    Member
    Posted 2 years ago #

    Matt, I removed the authenticated app and went back and did the same thing, still no authentication and no submit action.

  28. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    Igloozion/mayhem1969: what do you have entered as your App namespace in WordPress?

    What's the name space in app settings on developers.facebook.com? Those need to be the same thing.

  29. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    @psychesmartautismtm: is it possible to look at your apache logs and see if there are any errors being reported?

  30. Igloozion
    Member
    Posted 2 years ago #

    They are the same (in my case eestudentprojects) I retyped my app ID and App Secret, too, just to make sure there were no issues with copy/pasting the fields.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic