Facebook喜欢/没有FB按钮的评论 [英] facebook like/comments without fb buttons

查看:87
本文介绍了Facebook喜欢/没有FB按钮的评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太喜欢Facebook API,所以如果有人可以告诉我这是否可行,然后就我应该阅读的内容提供一些指导,那就太好了.

I am not very fond of Facebook API so it would be great if somebody could tell me if this is even possible and then maybe give some guidance in what should I be reading.

我正在构建WP小部件,该小部件具有复选框选项,用户可以通过fb墙通过喜欢,注释或fb允许的其他任何功能共享某些生成的单词,并且具有fb的功能.
因此,一旦用户点击保存,此操作应在后台发生,通过从某些Widget字段中获取输入来构建自定义消息.
再次有可能,我应该怎么做??

I am building WP widget that has a checkbox option for user to share few generated words on his fb wall whether through like, comments, or whatever else is there that fb allows and has a feature for.
So once user hits save this action should occur in the background, building custom message by picking up input from some of Widget fields.
Once again is this possible and what should I be after???

非常感谢.

推荐答案

  1. 首先,您应该创建FB应用程序: https://developers.facebook .com/docs/appsonfacebook/tutorial/

假设您的网页上有文本框和一个按钮-发布到Facebook.单击该按钮后,您应该显示FB对话框,要求用户向您的应用授予权限以在用户的​​墙上发布: https://developers.facebook.com/docs/authentication/client-side/.为此,您必须请求 publish_actions 权限.

Suppose your webpage has text box and a button - Post to Facebook. When that button is clicked, you should display FB dialog asking user to grant permissions to your application to post on user's wall: https://developers.facebook.com/docs/authentication/client-side/. For that particular purpose you have to request publish_actions permission.

用户确认后,您将从该弹出窗口中获得访问令牌-您可以使用该弹出窗口使用Graph API将新消息发布到用户墙上:

After user confirms that, you will get ACCESS TOKEN from that popup - which you can use to post new message to user's wall using Graph API: https://developers.facebook.com/docs/reference/api/post/. Depending on your technology, you might have SDK available for you which hids low-level details from you - but in essence, you only need to send POST HTTP request with required fields set (see link above for the list of fields).

这篇关于Facebook喜欢/没有FB按钮的评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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