有没有办法为我的网站的用户可以通过Facebook连接或API邀请他们的朋友? [英] Is there a way for users of my website to invite their friends via Facebook Connect or the API?

查看:105
本文介绍了有没有办法为我的网站的用户可以通过Facebook连接或API邀请他们的朋友?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与Facebook的API工作使我的耳朵流血,但尽管如此,我这我希望有人能找到一个解决方案有一个特定的问题在这里。我使用Facebook的PHP SDK,让我的网站的用户将自己的FB帐户他们的网站帐户链接,这样他们就可以稍后返回并点击登录(通过存储在我的数据库的OAuth凭证)。这是所有工作的罚款 - 我现在想的是能够为用户提供设施邀请/推荐他们的朋友到我的网站,使用网站上的某个表单

Working with the Facebook API makes my ears bleed, but nonetheless I've got a specific problem here which I'm hoping someone can find a solution for. I'm using the Facebook PHP SDK to allow users of my website to link their FB account with their website account, so they can return later and log in with one click (by storing their OAuth tokens in my database). This is all working fine - what I now want is to be able to provide users with the facility to invite/recommend their friends to my site, using a form on my site.

我试过FBML的例子来自很多地方,包括<一个href=\"http://stackoverflow.com/questions/1781973/facebook-connect-displaying-invite-friends-dialog-and-closing-on-completion\">here - 我已经成功地得到邀请的形式来显示,但尝试,因为我可能,我能得到它的产生是一个邀请我的应用,这是不相关的。该应用程序只存在让我有一个OAuth ID /秘密与图形API来使用。我想邀请用户的朋友来我的网站,或者最起码要一个Facebook页面插入我的网站。但似乎包括本FBML我的网页上只会生成应用程序的邀请。

I've tried FBML examples from many places including here - I've managed to get an invitation form to display but try as I might, all I can get it to generate is an invitation to my application, which isn't relevant. The app exists only so that I have an OAuth ID/secret to use with the Graph API. I want to invite the user's friends to my website, or at the very least to a Facebook Page plugging my website. But seemingly including this FBML on my page will only generate application invites.

我的问题:有没有办法做到这一点?我可以邀请用户的朋友到我的网站(即一个特定的URL),或者邀请他们到我的FB网页?我是不是从错误的角度接近这个?

My question: is there any way to accomplish this? Can I invite the user's friends to my site (ie. to a specific URL), or invite them to my FB Page? Am I approaching this from the wrong angle?

任何意见将是多少AP preciated。如果您想从任何进一步的信息中受益,请让我知道。非常感谢,

Any advice would be much appreciated. If you'd benefit from any further info, please let me know. Many thanks,

比格斯

推荐答案

右键。事实证明,中毛多撕裂后,我给的例子是正确的。邀请生成一个的应用程序邀请,但是这并不像其他应用程序的邀请。当收件人点击接受,他们将被发送到您指定的URL(在这种情况下,我的网站)。 应用程序,然后从他们的请求页面消失了 - 它的不可以出现在像一个正常的应用程序他们的个人资料。因此,一个可怕的荒谬过程,而是一个积极的结果。唷!

Right. It turns out after much tearing of hair, the example I gave was the right one. The invite generates an "Application Invite", but this is not like other app invites. When the recipient clicks "Accept" they are sent to the URL you specify (in this case, my website). The "App" then disappears from their request page - it does not appear in their profile like a normal app. So a horribly nonsensical process but a positive outcome. Phew!

这篇关于有没有办法为我的网站的用户可以通过Facebook连接或API邀请他们的朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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