gpt4 book ai didi

javascript - 不使用 ssl 发送应用请求

转载 作者:太空宇宙 更新时间:2023-11-03 14:18:41 25 4
gpt4 key购买 nike

我正在使用它来邀请 facebook 的 friend 加入我的应用:

   function invite(id) {
FB.ui({
method: 'apprequests',
message: 'mytext',
title: 'mytitle',
to: id,
}, function(response){
if (typeof response.error_message != 'undefined') {
console.log(response.error_message);
}else{
if(response!=null){
var invitados = id.split(',');
for( i=0; i<invitados.length; i++){
$('#friend_'+invitados[i]).addClass('invited');

}
}
}
});
}

问题是我的服务器上还没有 ssl 证书(而且我知道这应该通过安装它来解决。自从 facebook 转向安全登录后,我们只需要 ssl 就可以在 facebook 的站点中显示我们的站点)

一些用户从 facebook 收到 501 错误:

(net::ERR_INSECURE_RESPONSE):

有没有办法强制在我的站点而不是在 facebook(在 ifame 内)中打开请求(可能在 _blank 中)?

最佳答案

Is there a way to force opening the request (maybe in _blank) in my site instead of in facebook (inside the ifame)?

没有。

https://developers.facebook.com/docs/requests/ :

User to User Requests are only available for Canvas apps, not websites, as accepting a request will direct the user to the Canvas Page URL of the app that sent the Request.

关于javascript - 不使用 ssl 发送应用请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13010762/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com