简体   繁体   English

当新文章添加到Joomla时如何自动鸣叫

[英]How to automatically tweet when a new article added to Joomla

I have a free wordpress blog which automatically tweets my new article through my twitter account which I have no idea how wordpress does it. 我有一个免费的wordpress博客,它通过我的Twitter帐户自动发布我的新文章,我不知道wordpress是如何做到的。 I want to do the same thing on Joomla 3.2.3 platform. 我想在Joomla 3.2.3平台上做同样的事情。

What I want to do is when I add a new article into a specific category, I want Joomla to tweet the article's url automatically. 我想要做的是,当我将新文章添加到特定类别时,我希望Joomla自动发布该文章的网址。

What I have tried is to search for a couple of components doing this. 我尝试过的是搜索执行此操作的几个组件。 But I am stucked at API/Key-API/Secret validation. 但是我被困在API / Key-API /秘密验证上。 The component (AutoTweetNG) needs tweeter API to have read and write level. 组件(AutoTweetNG)需要高音扬声器API才能具有读写级别。 So I have many web sites to apply this application. 因此,我有许多网站可以应用此应用程序。 In order to have read and write rights twitter asks me to enter mobile phone number in the profile page. 为了拥有读写权限,twitter要求我在个人资料页面中输入手机号码。

I have decided to make this by hard coding. 我决定通过硬编码来实现。 Is there any oppurtunity to achieve this? 是否有实现这一目标的机会? It looks it is gonna be a little robot things, and twitter does not let me. 看来这会有点机器人问题,twitter不允许我这样做。

At least it would be great if thic could be done using PHP only. 如果仅使用PHP可以完成,至少会很棒。

Try this, 尝试这个,

You can achieve it using two things in Joomla, One is create a twitter Oauth APP also create a content plugin for auto tweet. 您可以在Joomla中使用两件事来实现它,其一是创建一个Twitter Oauth APP,还创建一个用于自动鸣叫的内容插件。

First you have to create an app with twitter just follow the link . 首先,您必须使用Twitter创建一个应用程序,只需点击链接即可 Then Create a Joomla content plugin with onContentAfterSave event. 然后使用onContentAfterSave事件创建一个Joomla内容插件

Then Once you create an article it will automatically tweets. 然后,一旦您创建了一篇文章,它就会自动鸣叫。

Hope its helps.. 希望能有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM