HI Micahel, I belive you would need to roll your own provider for this using Outh2. We just did somehting similar for a non-Umbraco project. OAuth2 is stil in beta, so we found some instabilities with the implementation, but that's all Facebook supports for the Java/Spring framework.
I know this is an old thread, but in case someone is looking for a (partly) solution to this, uShare is a package that currently shares to Facebook, Linkedin and Twitter from the backoffice. It's using OAuth as suggested above. It's main limitation though is that the actual text being shared is constructed from the Umbraco page name and URL. However if this needs to be customised, the source is available and should hopefully provide a good starting point.
Post to Facebook?
Anybody knows of an easy way to post to Facebook from Umbraco?
Best regards,
Michael Hyldsgaard
Can you please give some more details?
e.g. Do you mean that when a user publishes some content in the umbraco back end, it then posts the data to facebook as a status?
Or giving customers who view your website the ability to share pages on your website?
> Do you mean that when a user publishes some content in the umbraco back end, it then posts the data to facebook as a status?
Exactly...
HI Micahel, I belive you would need to roll your own provider for this using Outh2. We just did somehting similar for a non-Umbraco project. OAuth2 is stil in beta, so we found some instabilities with the implementation, but that's all Facebook supports for the Java/Spring framework.
-- Nik
It would depend on whether the facebook API allows you to do this, but from the umbraco side you could use something like this
using System;
using umbraco.BusinessLogic;
using umbraco.cms.presentation.Trees;
namespace MyNamespace
{
public class FacebookPostEvent : ApplicationBase
{
/// <summary>
/// Wire up the event handler
/// </summary>
public FacebookPostEvent()
{
BaseContentTree.AfterPublish += new BaseTree.AfterPublishEventHandler(BaseContentTree_AfterPublish);
}
void BaseContentTree_AfterPublish(Document sender, umbraco.cms.businesslogic.PublishEventArgs e)
{
// Put code in here to post to facebook
}
}
}
This will catch the umbraco publish, from here you can use the PublishEventArgs object to check for appropriate docTypes etc.
As I said before, it depends on what the facebook API allows you to do.
Hope this helps!
Hi
I know this is an old thread, but in case someone is looking for a (partly) solution to this, uShare is a package that currently shares to Facebook, Linkedin and Twitter from the backoffice. It's using OAuth as suggested above. It's main limitation though is that the actual text being shared is constructed from the Umbraco page name and URL. However if this needs to be customised, the source is available and should hopefully provide a good starting point.
Find it at Our or CodePlex.
Regards,
Rigardt
is working on a reply...