问题标签 [apprequests]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
3717 浏览

facebook - Facebook app requests

I have a facebook application that is a tab inside a fan page.

I have used the signed request to see if a user likes the page and show content based on that.

I have also managed to use get the facebook user id after prompting the user to log in and grant access to the application.

What I CAN'T do, is get the 'apprequests' functionality to work. I have tried it a couple of ways:

FYI - am using this version of jquery: https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

....

when I do this, there are 2 issues (and I think they're probably related) 1. The request isn't sent to the selected users 2. The function for the response isn't called. When I call the FB.ui method, I can selected users, but when I do that, the dialog shows a loading screen and just shuts down.

One thing that I found strange was that when I didn't include the 'redirect_uri' parameter (which from what I can see should not be necessary), I got an error saying the application did not own the call back url.

I have also tried doing it this way

This also appears to work, I can select users and it appears to work - I get the users that I added in the to[0], to[1], etc query string paramaeters.

Is there anything I'm doing that's wrong and could be causing this? When I request the user to authorize the app, I'm just requesting standard access, as far as I can tell from the Facebook docs this is all that should be required. I'm also wandering if there's some limitations on what can be done inside a page ta?

Any help would be greatly appreciated.

0 投票
2 回答
5518 浏览

ios - “apprequests”对话框报告成功,收件人什么也没收到

使用 Facebook iOS SDK,我可以显示一个带有 apprequests 的对话框并发送它。委托方法-dialogDidComplete:被调用,但接收者没有收到任何类型的通知或请求。如果他们已授权应用程序,Facebook.app(适用于 iOS)将在应用程序书签旁边显示许多待处理的请求,但通知宝石不会更新,并且找不到通知并且 Facebook.app 不会显示任何推送通知。

为此,我遵循了 Facebook 自己的教程,甚至尝试了他们自己的示例项目 Hackbook,但每次都得到相同的结果。

我是否在应用程序设置中遗漏了某些内容,或者这根本不像(糟糕的)文档中描述的那样工作?

我可以看到 Path 应用程序实现了这一点,它在我的设备上使用我的帐户运行得很好,所以我想我确实跳过了一些东西。添加赏金以寻求解决方案。

0 投票
3 回答
5405 浏览

facebook - FB.ui 请求方法

当我调用此方法时,我会收到朋友列表和发送请求按钮的提示。在通知区域“ABC”中发送您在“XYZ”中的请求可见,但消息不可见。该怎么办?

0 投票
1 回答
4010 浏览

facebook - FB.ui apprequests 方法,有没有办法限制用户可以发送的邀请数量?

有没有办法像使用 FBML - fb:multi-friend-selector 一样限制用户可以发送的邀请数量?有了它,您可以指定“max”,它会限制一个人可以发送的邀请数量。在脚本之前,我将运行一个 db 查询以查看它们生成了多少 request_ids,然后,我会将 request_ids 添加到数据库中。但是,首先我需要能够限制请求。50太多了。我希望将其降至 5 或 10。现在,它运行良好。我只需要这个功能。

0 投票
0 回答
690 浏览

c# - 从 c# 代码隐藏邀请朋友到我的应用程序

我知道如何使用以下 javascript 邀请朋友加入我的应用程序:

我正在使用以下 c# 代码

但我收到以下错误:“(GraphMethodException)不支持的发布请求。”

有人知道我做错了什么吗?

编辑:我正在使用 C# Facebook SDK 5.3.2.0

0 投票
1 回答
109 浏览

mysql - Facebook 应用程序数量最多的用户

我在我的应用程序中使用 facebook 请求。例如,我的数据库中有一个这样的表:

当用户接受请求时,未完成的变为 0。逻辑是当未完成的字段为 0 时,发出该请求的用户在我的应用程序中获得 10 分。

mysql 查询找出前 100 名得分较高的用户的语法是什么?我假设使用 order 和 group by 语句..

0 投票
1 回答
133 浏览

facebook - 如何减少仅对五个朋友的请求

我正在制作一个应用程序,并希望用户只与他们的五个朋友分享,应用程序刚刚发现两个过滤器应用程序用户或非用户或发送给一个或所有朋友。
用户怎么只能选择5个好友??

谢谢。

0 投票
2 回答
1347 浏览

facebook - 如何发送使用您的网站应用程序的邀请?

我一直在寻找解决问题的方法,经过一千次尝试后,我决定寻求帮助。

我的网站应用程序需要向当前登录的用户 Facebook 朋友发送邀请。为了做到这一点,我根据 Facebook 文档、博客和我发现的许多其他示例尝试了此代码

我看到了我所有朋友的弹出窗口,当我选择几个并单击“发送请求”按钮弹出窗口关闭并且没有发送请求时,我得到了所有(耐心)朋友的确认。

我做错了什么吗?

仅供参考,我也直接从浏览器、ajax 和 php 尝试过这个调用

我的目标是通知我的一个朋友(当前的 facebook 用户)有一个新的应用程序并邀请他。

提前谢谢了。

0 投票
1 回答
267 浏览

facebook - Requests 2.0,成功发送请求后,图中清空数据

我看到 Requests 有一些奇怪的行为。

我启动了一个请求对话框:

(以及一些消息、标题、数据的数据)

用户批准了请求,我得到了一个有效的响应,给了我请求 Id、它被发送到的用户 Id 和 updatedFrictionless 标志。但是,稍后在使用以下任一方式从图表中读取请求时:

我没有返回任何数据!

第一个图形调用会给我一个空数组(一个未命名的数组不是“数据”,只是简单地 [])第二个,给我“假”

REQUESTID 是我从原始呼叫中返回的请求 ID,USERID 是接收用户 ID。

接收用户是我,我确实在通知中看到了请求,但是使用图形资源管理器检查我的“apprequests”,它是空的。

有任何想法吗?我启用了 Requests 2.0,并使用摩擦力请求调用 FB.init: true..

0 投票
1 回答
638 浏览

facebook-graph-api - 如何删除应用请求

根据文档,当用户接受它时,我必须删除它。然而,这有一个问题。

当我接受 apprequest 时,我将被重定向到我的应用程序。但在 url 参数中只包含 apprequestid(s)。当前用户的userId不可用。我的应用不需要身份验证,因此我无法访问当前用户数据。

当我无权访问 userdata 或 accesstoken 时,如何删除此用户的 apprequest,如下所述

apprequest 的旧方法允许我从 requestid 中提取用户 ID。这已经不可能了。