When I share a page to facebook using addtoany, automatically a link to the AddToAny website is shown on my post (see attachment)
Is there a way to remove this?
thanks,
Jan

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jan@maxplus created an issue. See original summary.

micropat’s picture

Status: Active » Fixed

Facebook forces that with their official "app" endpoint.

With AddToAny Templates, you can switch to Facebook's old endpoint by setting the app_id to ''. [Edit: Updated the string value to be empty instead of 0.]

a2a_config.templates.facebook = {
    app_id: ''
};

Just add the above code to your "Additional JavaScript" box in Configuration > Web services > AddToAny > Additional Options.

Note: Facebook doesn’t document the old endpoint, nor provide all the parameters of the new one, so keep that in mind if/when you go to change Facebook parameters in the future.

jan@sevendays’s picture

Dear micropat,
thanks for your input, but it doesn't seem to be working...
I get errorr message, saying the app id is invalid...
see printscreen in attachment.

Any idea what I'm doing wrong?
thx

micropat’s picture

You're right, my mistake. I believe '0' was working last week, but what you want now is an empty string (''):

a2a_config.templates.facebook = {
    app_id: ''
};
jan@sevendays’s picture

Thanks!
works perfectly now!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.