多个facebook评论,多个tweets(multiaccount) [英] multiple facebook comments, multiple tweets(multiaccount)

查看:117
本文介绍了多个facebook评论,多个tweets(multiaccount)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是Facebook和Twitter API方面的专家,我一定会对项目中的一些介绍和可能的指导感到满意.

I am not a big expert on Facebook and Twitter APIs and I would definitely appreciate some introduction and possible guidance in my project.

这是我正在尝试做的事情,我首先想知道这是否有可能.

This is what I am trying to do, and I wonder first of all if this is even possible.

我正在构建带有复选框选项的WP小部件,以便用户允许在其Facebook墙上生成评论,并使用其Twitter帐户进行鸣叫.注释应该从自定义输入字段中获取值并以此方式构建自身.

I am building WP widget with checkbox option for user to allow generation of comment on his facebook wall and tweet with his twitter account. Comment is supposed to pick up values from custom input fields and build itself that way.

同时,我想在我的fb和Twitter帐户上使用小部件生成有关新用户的帖子.

Simultaneously I want to generate post on my fb and twitter accounts regarding new user using my widget.

这有可能吗?您能否给我链接到使这一功能起作用所必需的文档.否则,您对最接近的替代效果的建议是什么.

Is this possible to do? Could you give me links to documentation that is essential to make this one work. Otherwise what is your suggestion as a closest alternative effect.

非常感谢!

推荐答案

hmm-看起来与您的其他

hmm - looks similar to your other question. I explained there how you should start with FB. With Twitter, it's very similar:

  1. 首先,您需要创建一个应用程序: https://dev.twitter.com/apps/new

使用该应用程序的凭据,您必须要求用户允许您的应用程序代表用户发布(即,您需要获取访问令牌):

Using that app's credentials, you have to ask user to allow your app to post on user's behalf (i.e. you need to obtain an access token): https://dev.twitter.com/docs/auth/obtaining-access-tokens

获得访问令牌后,您可以使用REST API进行所需的操作: https ://dev.twitter.com/docs/api -包括发布推文.

After you have access token, you can use REST API to do whatever you want: https://dev.twitter.com/docs/api - including posting a tweet.

关于:

同时我想在我的fb和Twitter帐户上生成帖子 关于使用我的小部件的新用户.

Simultaneously I want to generate post on my fb and twitter accounts regarding new user using my widget.

与上述方法没有什么不同-但是您应该使用自己的Twitter帐户名(或Facebook中的/me/).当然,您必须授权自己的应用程序才能做到这一点.

it's no different from the above approach - but you should use your own twitter account name (or /me/ in Facebook). Of course you have to authorize your own app to do that.

这篇关于多个facebook评论,多个tweets(multiaccount)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆