I’m having the same problems.
I tried uploading the above code into the functions.php , but it still isn’t working.
When a contributor posts a link through the link share option, the post looks as though it was successful, but doesn’t appear on the Activity wall or on any feeds.
Any other suggestions?
Thank you!