Thread Starter
BGH_
(@bgh_)
Without this stuff sorted out, this plugin is rather futile at this current state.
Uninstalling this, as I post.
Will re-install, when this get a better, proper update to work.
Regards.
Same here. This makes all of our social media Like links and whatnot useless on the site, which is a pity.
Thread Starter
BGH_
(@bgh_)
I’m thinking in the following workaround: trying not to use {url}
token when broadcasting. That way it should broadcast to Facebook (in this case) without a link, so when it is succesfully broadcasted, then I’ll edit the post on Facebook adding the link by myself.
It’s not pretty, and I’m not so sure if this would solve the issue, but it should be no harm to try.
Will report back with the result.
EDIT: Tried and no luck. It always paste the link on Facebook when you’re about to broadcast your post, even without {url}
token set :/. I suppose this can be modified inside the files of the plugin, but I’m not really sure where to edit it.
Thread Starter
BGH_
(@bgh_)
FOUND THE WAY TO FIX IT! BACKUP FIRST AND EDIT AT YOUR OWN RISK
After struggling a lot, finally, I found a workaround, or somehow. On social/lib/social/service.php
look for line 297, and you should do this:
Find:
case '{url}':
$url = social_get_shortlink($post->ID);
if (empty($url)) {
$url = home_url('?p='.$post->ID);
}
$url = apply_filters('social_broadcast_permalink', $url, $post, $this);
$content = esc_url_raw($url);
break;
Replace to:
case '{url}':
$url = social_get_shortlink($post->ID);
if (empty($url)) {
$url = get_permalink($post->ID);
}
$url = apply_filters('social_broadcast_permalink', $url, $post, $this);
$content = esc_url_raw($url);
break;
This way Twitter will still use the shortlink (site.com/?p=2223), but Facebook will broadcast your own permalink on the Facebook wall :D.
Issue marked as resolved!
The support for the plugin is really bad.. BGH_ thanks for finding how to solve.
It’s really sad that a so HUGE bug is still not fixed.
Or you could read the FAQ.