WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] Use plugin as it is and add one hardcoded facebook like (2 posts)

  1. drazon
    Member
    Posted 6 months ago #

    Hello I found this plugin very helpful and complete, however I'm trying to add as a custom service a facebook like button which likes the facebook fan page and keep all the other services as they are meanig that they will share the currenttly displayed page.

    Please check the image http://tinypic.com/r/2441khy/8

    I'm trying to do it through the additional javascript window having in mind the following code

    a2a_config.custom_services = [
    	["Example dot org",
    	 	"http://www.example.org/add?name=A2A_LINKNAME_ENC&url=A2A_LINKURL_ENC",
    		"http://www.example.org/images/icon_16x16.png"
    	]
    ];

    and the "url" code for facebook developers(https://developers.facebook.com/docs/plugins/like-button/)

    http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&width=50&layout=button&action=like&show_faces=false&share=false&height=35

    However I don't feel the above is all i need, Can somebody point me to the right direction?

    https://wordpress.org/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 6 months ago #

    Unfortunately this isn't possible because Facebook's Like button is an iframe as opposed to a common endpoint.

    A better approach would be to use an additional plugin that implements Facebook's Like Box; probably their official plugin:
    http://wordpress.org/plugins/facebook/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.