发布内容到Facebook到用户的墙? [英] post content to facebook to users' wall?

查看:151
本文介绍了发布内容到Facebook到用户的墙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了一个调查,最后我想让用户在他们的Facebook墙壁上分享他们的结果,但我很难找到任何例子或参考。

i've built a survey and at the end i want the users to share their result on their facebook wall but i'm finding it hard to find any examples or reference.

<div>
[ image/graphic ] 
"I've just completed survey XXX and got 90%"
<a>post on my wall</a>
</div>

任何帮助赞赏 - 即使它的只是术语我可以查找!

any help appreciated - even if its just terminology i can look up!

推荐答案

开始这里。基本上,您正在创建一个要集成到Facebook中的网站。为此,您的用户需要从您的网站登录Facebook(除非他们已经登录,例如在其他浏览器标签中),并允许您的网站代表他们在Facebook上执行某些操作。

Start here. Basically, you're creating a website which you want to integrate into Facebook. To do so, your users will need to "login to Facebook" from your site (unless they're already logged in, such as in another browser tab) and allow your site to perform certain actions on Facebook on their behalf.

单点登录部分是您将以Facebook应用程序初始化您的网站(您需要先在Facebook上创建应用程序),并为您的用户提供一个登录按钮。

The Single Sign-On part is where you will initialize your website as a Facebook application (you'll need to create the application on Facebook first) and provide a login button for your users.

您的登录按钮可以设置为要求用户具体权限代表他们行事Facebook的。我想你想要的是 publish-stream ,但我只是很少熟悉它,玩弄功能,看看最适合你的。您的用户将看到一个弹出窗口,指出您的网站(或应用程序)正在请求这些特定权限,并且可以选择允许或拒绝。 此处可以看到一个例子。

Your login button can be set up to ask the user for specific permissions to act on their behalf with Facebook. I think the one you want is publish-stream but I'm only barely familiar with it, play around with the functionality and see what works best for you. Your users will be presented with a pop-up div stating that your website (or application) is requesting these specific permissions and they have the option to allow or deny. An example can be seen here.

获得用户许可后,您可以使用Cookie(在单点登录链接上使用PHP进行演示),以通过使用 JavaScript SDK 社交插件等。

Once you have the user's permission, you make use of the cookie (demonstrated using PHP back on the Single Sign-On link) to gain access to information by use of the Graph API, the JavaScript SDK, Social Plugins, etc.

这篇关于发布内容到Facebook到用户的墙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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