简单的 Facebook 集成
我想将好友网站(摄影师)与 Facebook 集成。我一直试图在 Facebook 开发者指南中找到答案,但我似乎并不清楚。
如果出现以下情况,我需要什么:
- 我想要他拥有的每个相册都有一个“赞”按钮
- 我想要将他在我的 cms 中输入的新闻发布到他的 Facebook 墙上
我需要申请吗?或者我可以通过插件来完成这个任务吗?
提前致谢。
I want to integrate a friends website (photographer) with Facebook. I've been trying to find the answer in the Facebook Developers guide, but it doesn't seem clear to me.
What would I need if:
- I want to have a like button per photo album he has
- I want to publish his news that he enters in my cms to his facebook wall
Do I need an application? Or can I accomplish this with plugins?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
点赞按钮只需插入一段代码即可添加
facebook 会处理其余的部分。
但是,如果您想对喜欢的页面执行更多操作,例如发送更新和统计数据,您需要注册app 并提供应用程序 ID 作为您网站中的元标记。使用开放图表示法。
要发布新闻文章,您可以获取永久令牌并使用图形 API 进行发布,但也有 替代且可能更简单的方法
the like button can just be added by inserting a code snipped
facebook will take care of the rest.
if you however want to do more with your liked pages like send updates and have statistics, you need to register an app and supply the app id as meta tag in your website. the open graph notation is used.
to publish news post you can obtain a permament token and publish using the graph api, but there are also alternative and probably easier methods
你应该保持简单,并且能够只用插件来完成这些... FB 的文档非常丰富:
在这里它解释了如何添加“喜欢”按钮:
这要发布到他的墙上:
You should keep it simple and be able to accomplish these with just plugins... FB's documentation is quite rich:
In here it explains how to add the like button:
And this to post to his wall: