Support » Plugin: WPBook » Ability to set post title on Facebook?

  • Is there a way to set a different title to be used on Facebook than the WP post title? I’d like to be able to include a call to action (“click the like button”) or some other text in the title that gets sent to Facebook which is not in the title from WP. Is this possible? If not, would you consider adding it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Eckman

    (@johneckman)

    It is not possible in the current version.

    I would consider it in the future but there are other requirements we should address first (categories, post types, authors).

    I’m a developer and would be willing to add it myself if you could point me in the right direction.

    Plugin Author John Eckman

    (@johneckman)

    Well, you’d need to set up an option first – “enable different post title in Facebook” or something like that.

    Then you’d need to add a custom metadata field to the post edit screen for that field

    Then you’d need to edit the publish_to_facebook.php function to look for that field (if the option is set) and use it (if the field is non-empty)

    Would it also show the different title when you view the app canvas page, or tab? Or only when posting the excerpt to the FB wall?

    Not a simple effort I’m afraid, but have a go.

    Plugin Contributor BandonRandon

    (@bandonrandon)

    Interesting idea Steve, let us know what you come up with.

    I’ve never worked on a WordPress plugin before, so I’m a little lost. Where does the code that controls what appears on the post edit page come from? Basically, can you give me an overview of where each part of the code resides?

    Plugin Contributor BandonRandon

    (@bandonrandon)

    See WPBook.php is the guts of the plugin. This is where you’ll set the option in the backend (WPBook page view). To edit what’s on the post edit page see lines 1088-1113 Which is an example of how the “publish to facebook” function works. We then call the filter on line 1364

    includes/publish_to_facebook.php will control what is sent to facebook. Line 88 sets the title

    Hope that helps

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ability to set post title on Facebook?’ is closed to new replies.